33 include ../../make-rules/configure.mk |
33 include ../../make-rules/configure.mk |
34 include ../../make-rules/ips.mk |
34 include ../../make-rules/ips.mk |
35 |
35 |
36 PATCH_LEVEL=0 |
36 PATCH_LEVEL=0 |
37 |
37 |
38 APRUTIL_PREFIX=/usr/apr-util/1.3 |
38 CONFIGURE_PREFIX=/usr/apr-util/1.3 |
39 |
39 |
40 # CONFIGURE_OPTIONS need to be reset so that pre-defined layout can be |
|
41 # used without being overwritten with default configure paths. |
|
42 # CC and CFLAGS are here just for configure needs as during the build are |
|
43 # used those from apr-1-config. Therefore also PATH definition bellow |
|
44 # contains compiler path as the first item. |
|
45 CONFIGURE_OPTIONS = --prefix=$(APRUTIL_PREFIX) |
|
46 CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.1 |
40 CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.1 |
47 CONFIGURE_OPTIONS += --with-expat=/usr |
41 CONFIGURE_OPTIONS += --with-expat=/usr |
48 CONFIGURE_OPTIONS += --with-sqlite3=/usr |
42 CONFIGURE_OPTIONS += --with-sqlite3=/usr |
49 CONFIGURE_OPTIONS += --with-ldap=ldap |
43 CONFIGURE_OPTIONS += --with-ldap=ldap |
50 CONFIGURE_OPTIONS += --without-odbc |
44 CONFIGURE_OPTIONS += --without-odbc |
51 CONFIGURE_OPTIONS += CC="$(CC)" |
|
52 CONFIGURE_OPTIONS += CXX="$(CCC)" |
|
53 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
45 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
54 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS)) |
|
55 CONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris |
46 CONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris |
56 CONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64) |
47 CONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64) |
57 CONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.3/bin/apr-1-config |
48 CONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.3/bin/apr-1-config |
58 CONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.3/bin/$(MACH64)/apr-1-config |
49 CONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.3/bin/$(MACH64)/apr-1-config |
59 CONFIGURE_OPTIONS.64 += MYSQL_CONFIG=/usr/mysql/5.1/bin/$(MACH64)/mysql_config |
50 CONFIGURE_OPTIONS.64 += MYSQL_CONFIG=/usr/mysql/5.1/bin/$(MACH64)/mysql_config |
69 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf); |
60 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf); |
70 |
61 |
71 # Documentation is generated in and directly packaged from 32 bit build |
62 # Documentation is generated in and directly packaged from 32 bit build |
72 # directory using doxygen. |
63 # directory using doxygen. |
73 PKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH32)/docs/dox/html |
64 PKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH32)/docs/dox/html |
74 PUBLISH_TRANSFORMS += doc-transform |
65 |
75 docs: $(BUILD_DIR)/$(MACH32)/.built |
66 docs: $(BUILD_DIR)/$(MACH32)/.built |
76 cd $(BUILD_DIR)/$(MACH32); doxygen docs/doxygen.conf |
67 cd $(BUILD_DIR)/$(MACH32); doxygen docs/doxygen.conf |
77 |
68 |
78 build: $(BUILD_32_and_64) docs |
69 build: $(BUILD_32_and_64) docs |
79 |
70 |