48 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
48 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
49 |
49 |
50 COMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1 |
50 COMPONENT_BUILD_ENV+= NO_PERL_MAKEMAKER=1 |
51 COMPONENT_INSTALL_ENV+= PERL_LIB=$(shell /usr/perl5/$(PERL_VERSION)/bin/perl -MConfig -e 'print "$$Config{installvendorarch}"') |
51 COMPONENT_INSTALL_ENV+= PERL_LIB=$(shell /usr/perl5/$(PERL_VERSION)/bin/perl -MConfig -e 'print "$$Config{installvendorarch}"') |
52 |
52 |
|
53 COMPONENT_TEST_TARGETS = test |
|
54 |
53 # |
55 # |
54 # This runs configure but configure doesn't generate a Makefile. |
56 # This runs configure but configure doesn't generate a Makefile. |
55 # Instead a Makefile comes with git ... |
57 # Instead a Makefile comes with git ... |
56 # Anyways viewpathing doesn't work. |
58 # Anyways viewpathing doesn't work. |
57 # Therefore we need cloney to copy a set of files to build. |
59 # Therefore we need cloney to copy a set of files to build. |
67 PKG_MACROS += PERL_ARCH=$(shell arch) |
69 PKG_MACROS += PERL_ARCH=$(shell arch) |
68 PKG_MACROS += PERL_VERSION=$(PERL_VERSION) |
70 PKG_MACROS += PERL_VERSION=$(PERL_VERSION) |
69 |
71 |
70 build: $(BUILD_32) $(DOC)/.manpages |
72 build: $(BUILD_32) $(DOC)/.manpages |
71 |
73 |
72 install: $(INSTALL_32) $(BUILD_DIR_32)/.manpages |
74 install: $(INSTALL_32) |
|
75 |
|
76 # |
|
77 # tests fully pass when done in the archive directory. |
|
78 # fail here; probably due to the use of cloney. |
|
79 # |
|
80 test: $(TEST_32) |
73 |
81 |
74 # |
82 # |
75 # I know. It's ugly. |
83 # I know. It's ugly. |
76 # But these man pages come in a separate archive with no Makefile |
84 # But these man pages come in a separate archive with no Makefile |
77 # and Solaris likes some of them moved around hence we'll just |
85 # and Solaris likes some of them moved around hence we'll just |
78 # do it manually here. |
86 # do it manually here. |
79 # |
87 # |
80 $(DOC)/.manpages: |
88 $(DOC)/.manpages: |
81 cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) |
89 cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) |
82 $(MKDIR) $(DOC) |
90 $(MKDIR) $(@D) |
83 cd $(BUILD_DIR)/man1 ; for manfile in *.1; \ |
91 cd $(BUILD_DIR)/man1 ; for manfile in *.1; \ |
84 do \ |
92 do \ |
85 sed -f ../../solarisman-stability $$manfile > \ |
93 name=`basename $$manfile .1`; \ |
86 $(DOC)/$$manfile; \ |
94 cat $$manfile > $(DOC)/$$name.1; \ |
87 done |
95 done |
88 cd $(BUILD_DIR)/man5 ; for manfile in *.5; \ |
96 cd $(BUILD_DIR)/man5 ; for manfile in *.5; \ |
89 do \ |
97 do \ |
90 name=`basename $$manfile .5`; \ |
98 name=`basename $$manfile .5`; \ |
91 sed 's/"5"/"4"/' $$manfile | \ |
99 sed 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \ |
92 sed -f ../../solarisman-stability > $(DOC)/$$name.4; \ |
|
93 done |
100 done |
94 cd $(BUILD_DIR)/man7 ; for manfile in *.7; \ |
101 cd $(BUILD_DIR)/man7 ; for manfile in *.7; \ |
95 do \ |
102 do \ |
96 name=`basename $$manfile .7`; \ |
103 name=`basename $$manfile .7`; \ |
97 sed 's/"7"/"5"/' $$manfile | \ |
104 sed 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \ |
98 sed -f ../../solarisman-stability > $(DOC)/$$name.5; \ |
|
99 done |
105 done |
100 @ touch $(DOC)/.manpages |
106 $(TOUCH) $@ |
101 |
|
102 # |
|
103 # install manpages per architecture |
|
104 # |
|
105 $(BUILD_DIR_32)/.manpages: |
|
106 $(MKDIR) $(PROTOUSRSHAREMAN1DIR) |
|
107 $(MKDIR) $(PROTOUSRSHAREMAN4DIR) |
|
108 $(MKDIR) $(PROTOUSRSHAREMAN5DIR) |
|
109 cd $(DOC) ; for manfile in *.1; \ |
|
110 do \ |
|
111 $(RM) $(PROTOUSRSHAREMAN1DIR)/$$manfile; \ |
|
112 $(INSTALL) -m 0444 $$manfile $(PROTOUSRSHAREMAN1DIR); \ |
|
113 done |
|
114 cd $(DOC) ; for manfile in *.4; \ |
|
115 do \ |
|
116 $(RM) $(PROTOUSRSHAREMAN4DIR)/$$manfile; \ |
|
117 $(INSTALL) -m 0444 $$manfile $(PROTOUSRSHAREMAN4DIR); \ |
|
118 done |
|
119 cd $(DOC) ; for manfile in *.5; \ |
|
120 do \ |
|
121 $(RM) $(PROTOUSRSHAREMAN5DIR)/$$manfile; \ |
|
122 $(INSTALL) -m 0444 $$manfile $(PROTOUSRSHAREMAN5DIR); \ |
|
123 done |
|
124 @ touch $(BUILD_DIR_32)/.manpages |
|
125 |
107 |
126 |
108 |
127 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
109 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
128 |
110 |
129 # |
|
130 # tests fully pass when done in the archive directory. |
|
131 # fail here; probably due to the use of cloney. |
|
132 # |
|
133 test: build |
|
134 @cd $(BUILD_DIR_32); $(MAKE) test |
|
135 |
|
136 include ../../make-rules/depend.mk |
111 include ../../make-rules/depend.mk |