- rearrange Makefile
- add USE_JAVA knob to enable Java support - remove deprecated variables - batch up the install of files instead of using .for loops
This commit is contained in:
parent
a031ff87d4
commit
d1cfc69228
@ -1,18 +1,24 @@
|
|||||||
# $OpenBSD: Makefile,v 1.12 2000/01/31 15:07:03 kevlo Exp $
|
# $OpenBSD: Makefile,v 1.13 2000/02/02 18:18:41 brad Exp $
|
||||||
|
|
||||||
DISTNAME= db-3.0.55
|
DISTNAME= db-3.0.55
|
||||||
CATEGORIES= databases
|
CATEGORIES= databases
|
||||||
|
MASTER_SITES= http://www.sleepycat.com/update/3.0.55/
|
||||||
|
|
||||||
MAINTAINER= tacho@openbsd.org
|
MAINTAINER= tacho@openbsd.org
|
||||||
|
|
||||||
MASTER_SITES= http://www.sleepycat.com/update/3.0.55/
|
GNU_CONFIGURE= yes
|
||||||
|
CONFIGURE_SCRIPT=../dist/configure
|
||||||
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 --enable-cxx
|
||||||
|
|
||||||
GNU_CONFIGURE= YES
|
.if defined(USE_JAVA) && ${USE_JAVA:U} == YES
|
||||||
CONFIGURE_SCRIPT= ../dist/configure
|
CONFIGURE_ARGS+= --enable-java
|
||||||
CONFIGURE_ARGS= --host=${ARCH}-unknown-openbsd --prefix=${PREFIX} \
|
.endif
|
||||||
--enable-compat185 --enable-dump185 --enable-cxx
|
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
IS_INTERACTIVE= yes
|
||||||
|
|
||||||
|
NO_PACKAGE= "interactive port"
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
||||||
|
|
||||||
EXAMPLES_C= README ex_access.c ex_btrec.c ex_env.c ex_lock.c \
|
EXAMPLES_C= README ex_access.c ex_btrec.c ex_env.c ex_lock.c \
|
||||||
ex_mpool.c ex_thread.c ex_tpcb.c ex_tpcb.h
|
ex_mpool.c ex_thread.c ex_tpcb.c ex_tpcb.h
|
||||||
@ -21,34 +27,27 @@ EXAMPLES_CPP= AccessExample.cpp BtRecExample.cpp EnvExample.cpp \
|
|||||||
EXAMPLES_JAVA= AccessExample.java BtRecExample.java EnvExample.java \
|
EXAMPLES_JAVA= AccessExample.java BtRecExample.java EnvExample.java \
|
||||||
LockExample.java TpcbExample.java
|
LockExample.java TpcbExample.java
|
||||||
|
|
||||||
IS_INTERACTIVE= yes
|
|
||||||
NO_PACKAGE= interactive port
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/db
|
||||||
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/db
|
||||||
|
@mv ${PREFIX}/docs/* ${PREFIX}/share/doc/db
|
||||||
@mv ${PREFIX}/include/db.h ${PREFIX}/include/db3.h
|
@mv ${PREFIX}/include/db.h ${PREFIX}/include/db3.h
|
||||||
@${MKDIR} ${PREFIX}/share/doc/db
|
@rmdir ${PREFIX}/docs
|
||||||
@${MV} ${PREFIX}/docs/* ${PREFIX}/share/doc/db
|
@echo "Installing samples: ${PREFIX}/share/examples/db ..."
|
||||||
@${RMDIR} ${PREFIX}/docs
|
@cd ${WRKSRC}/../examples_c; ${INSTALL_DATA} ${EXAMPLES_C} \
|
||||||
@${MKDIR} ${PREFIX}/share/examples/db
|
|
||||||
@echo Installing samples: ${PREFIX}/share/examples/db ...
|
|
||||||
.for example in ${EXAMPLES_C}
|
|
||||||
@${INSTALL_DATA} ${WRKSRC}/../examples_c/${example} \
|
|
||||||
${PREFIX}/share/examples/db
|
${PREFIX}/share/examples/db
|
||||||
.endfor
|
@cd ${WRKSRC}/../examples_cxx; ${INSTALL_DATA} ${EXAMPLES_CPP} \
|
||||||
.for example in ${EXAMPLES_CPP}
|
|
||||||
@${INSTALL_DATA} ${WRKSRC}/../examples_cxx/${example} \
|
|
||||||
${PREFIX}/share/examples/db
|
${PREFIX}/share/examples/db
|
||||||
.endfor
|
@cd ${WRKSRC}/../examples_java; ${INSTALL_DATA} ${EXAMPLES_JAVA} \
|
||||||
.for example in ${EXAMPLES_JAVA}
|
|
||||||
@${INSTALL_DATA} ${WRKSRC}/../examples_java/${example} \
|
|
||||||
${PREFIX}/share/examples/db
|
${PREFIX}/share/examples/db
|
||||||
.endfor
|
@echo ""
|
||||||
@${ECHO_MSG} ""
|
@echo "Java support for ${PKGNAME} is *NOT* built by default,"
|
||||||
@${ECHO_MSG} "Java support for ${PKGNAME} is *not* built by default,"
|
@echo "and requires that you have a working copy of the JDK"
|
||||||
@${ECHO_MSG} "and requires that you have a work working copy of the"
|
@echo "installed."
|
||||||
@${ECHO_MSG} "JDK installed."
|
@echo ""
|
||||||
@${ECHO_MSG} ""
|
@echo "To build Java support, use the \"USE_JAVA=yes\" option"
|
||||||
@${ECHO_MSG} "To build java support, please add \"--enable-java\""
|
@echo "on the make command line."
|
||||||
@${ECHO_MSG} "in CONFIGURE_ARGS, thaks."
|
@echo "For example: \"make USE_JAVA=yes\""
|
||||||
|
@echo ""
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user