Makefile revision 2899
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
b253dcf9668f95e141bce9556dc88e30d3305a1dTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# If applicable, add the following below this CDDL HEADER, with the
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# CDDL HEADER END
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrews# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
89623368b8f662d458d9964b923050f33c5f75b0Tinderbox User#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude ../../make-rules/shared-macros.mk
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_NAME= asciidoc
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_VERSION= 8.6.8
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_BUGDB= utility/asciidoc
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterTPNO= 14505
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/prep.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/configure.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/ips.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# AsciiDoc configuration and data files belong in /usr/share, not /etc based
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# on discussion from ARC pre-review.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCONFIGURE_OPTIONS += --sysconfdir=/usr/share
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# pkgdepend doesn't like the first line of a Python script to be:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCOMPONENT_POST_INSTALL_ACTION += \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(PROTOUSRBINDIR64)/asciidoc.py;
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_POST_INSTALL_ACTION += \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews $(PROTOUSRBINDIR64)/a2x.py;
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION = \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User ($(CLONEY) $(SOURCE_DIR) $(@D))
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsASLR_MODE = $(ASLR_ENABLE)
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater# common targets
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsbuild: $(BUILD_64)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(INSTALL_64)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Tests require image/graphviz to be installed. Some tests also want to run
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# programs named latex, lilypad, abc2ly and source-highlight which are not
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# available on Solaris, so these tests fail.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
114f7780384371121918624ae2c80ecfce545683Tinderbox UserCOMPONENT_PRE_TEST_ACTION = \
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater (cd $(@D); \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ln -s asciidoc.py asciidoc; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater export PATH=$(@D):$$PATH; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson cd tests; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater python$(PYTHON_VERSION) ./asciidocapi.py; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater if [ $$? -eq 0 ] ; \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews then print "asciidocapi test passed"; else print "asciidocapi test failed"; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater fi; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson python$(PYTHON_VERSION) ./testasciidoc.py update; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater python$(PYTHON_VERSION) ./testasciidoc.py run; )
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssontest: $(TEST_64)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinclude ../../make-rules/depend.mk
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User