diff options
Diffstat (limited to 'databases/dbf/Makefile')
-rw-r--r-- | databases/dbf/Makefile | 68 |
1 files changed, 55 insertions, 13 deletions
diff --git a/databases/dbf/Makefile b/databases/dbf/Makefile index 7b01c1837573..964177025685 100644 --- a/databases/dbf/Makefile +++ b/databases/dbf/Makefile @@ -7,28 +7,70 @@ # PORTNAME= dbf -PORTVERSION= 0.8.3.1 +PORTVERSION= 0.9.0 CATEGORIES= databases -MASTER_SITES= BERLIOS -DISTNAME= ${PORTNAME}-${PORTVERSION}.src +MASTER_SITES= SF/${PORTNAME}.berlios +DISTFILES= ${PORTNAME}-core-${PORTVERSION}.src.zip \ + lib${PORTNAME}-0.0.1.src.zip MAINTAINER= ports@FreeBSD.org COMMENT= Show and convert the content of dBASE III, IV, and 5.0 files -DEPRECATED= berlios masters no longer have any code on them. Upstream unavailable for years -EXPIRATION_DATE=2012-8-28 +OPTIONS_DEFINE= NLS -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +WRKSRC= ${WRKDIR}/lib${PORTNAME} -PLIST_FILES= bin/dbf -MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" +USE_ZIP= yes +USE_GNOME= gnomehack intltool +USE_GCC= 4.6+ +GNU_CONFIGURE= yes +CONFIGURE_ENV= ac_cv_prog_DOC_TO_MAN="" +USE_LDCONFIG= yes +MAKE_JOBS_SAFE= yes + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lintl +PLIST_SUB+= NLS="" +.else +CONFIGURE_ENV+= ac_cv_header_libintl_h=no +PLIST_SUB+= NLS="@comment " +.endif + +.if !defined(DISABLE_MAKE_JOBS) +_make_jobs= -j${MAKE_JOBS_NUMBER} +.endif + +post-extract: + @${FIND} ${WRKDIR} -name "configure" -or -name "install-sh" | \ + ${XARGS} ${CHMOD} ${BINMODE} post-patch: -.for file in endian.h tables.h - @${REINPLACE_CMD} -e '/typedef u_int/d' ${WRKSRC}/${file} -.endfor + @${REINPLACE_CMD} -e \ + '/typedef u_int/d' ${WRKSRC}/src/endian.h + +post-configure: + @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${CONFIGURE_ENV} \ + CC="${CC}" CXX="${CXX}" \ + CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ + CPPFLAGS="-I${WRKSRC}/include" \ + LDFLAGS="-L${WRKSRC}/src/.libs" \ + INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_LIB="${INSTALL_LIB}" \ + INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ + INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ + ac_cv_lib_dbf_dbf_Open=yes \ + ./configure --prefix=${PREFIX}) + +post-build: + @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${_make_jobs} ${ALL_TARGET}) -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dbf ${PREFIX}/bin +post-install: + @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) .include <bsd.port.mk> |