20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 32 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= a2ps |
28 COMPONENT_NAME= a2ps |
29 COMPONENT_VERSION= 4.14 |
29 COMPONENT_VERSION= 4.14 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_PROJECT_URL= http://www.gnu.org/software/a2ps/ |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4 |
31 sha256:f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4 |
35 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/a2ps/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= utility/a2ps |
|
37 |
32 |
38 TPNO= 4517 |
33 TPNO= 4517 |
39 |
34 |
40 include $(WS_MAKE_RULES)/prep.mk |
35 include $(WS_MAKE_RULES)/gnu-component.mk |
41 include $(WS_MAKE_RULES)/configure.mk |
|
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
36 |
44 # don't use LD_Z_IGNORE: causes linker problems |
37 # don't use LD_Z_IGNORE: causes linker problems |
45 LD_Z_IGNORE= |
38 LD_Z_IGNORE= |
46 |
39 |
47 CONFIGURE_OPTIONS += --enable-shared |
40 CONFIGURE_OPTIONS += --enable-shared |
48 CONFIGURE_OPTIONS += --disable-static |
41 CONFIGURE_OPTIONS += --disable-static |
49 CONFIGURE_OPTIONS += --sysconfdir=/etc/gnu |
42 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/gnu |
50 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
43 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
51 CONFIGURE_OPTIONS += --with-medium=letter |
44 CONFIGURE_OPTIONS += --with-medium=letter |
52 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
53 |
45 |
54 # because viewpathing isn't quite right in this version of a2ps |
46 # because viewpathing isn't quite right in this version of a2ps |
55 COMPONENT_PREP_ACTION = \ |
47 COMPONENT_PREP_ACTION = \ |
56 (cd $(@D) ; ln -s $(SOURCE_DIR)/auxdir/mkinstalldirs) |
48 (cd $(@D) ; ln -s $(SOURCE_DIR)/auxdir/mkinstalldirs) |
57 COMPONENT_POST_CONFIGURE_ACTION = \ |
49 COMPONENT_POST_CONFIGURE_ACTION = \ |
61 (cd $(@D)/sheets ; \ |
53 (cd $(@D)/sheets ; \ |
62 for sheet in $(SOURCE_DIR)/sheets/*.ssh ; do \ |
54 for sheet in $(SOURCE_DIR)/sheets/*.ssh ; do \ |
63 ln -s $$sheet ; \ |
55 ln -s $$sheet ; \ |
64 done) |
56 done) |
65 |
57 |
66 # Enable ASLR for this component |
|
67 ASLR_MODE = $(ASLR_ENABLE) |
|
68 |
|
69 # common targets |
|
70 configure: $(CONFIGURE_32) |
|
71 |
|
72 build: $(BUILD_32) |
|
73 |
|
74 install: $(INSTALL_32) |
|
75 |
|
76 test: $(TEST_32) |
|
77 |
|
78 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
79 |
|
80 |
|
81 REQUIRED_PACKAGES += developer/gperf |
58 REQUIRED_PACKAGES += developer/gperf |
82 REQUIRED_PACKAGES += editor/gnu-emacs |
59 REQUIRED_PACKAGES += editor/gnu-emacs |
83 REQUIRED_PACKAGES += runtime/perl-522 |
60 REQUIRED_PACKAGES += runtime/perl-522 |
84 REQUIRED_PACKAGES += shell/ksh93 |
61 REQUIRED_PACKAGES += shell/ksh93 |
85 REQUIRED_PACKAGES += system/library |
|
86 REQUIRED_PACKAGES += system/library/math |
62 REQUIRED_PACKAGES += system/library/math |