aboutsummaryrefslogtreecommitdiff
path: root/sysutils/di/Makefile
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-05-07 09:01:07 +0000
committerWen Heping <wen@FreeBSD.org>2010-05-07 09:01:07 +0000
commit582a08700a0e05a28e8c3e86b0eb73bd337216da (patch)
tree4bd3799e194d539610a9fdd64e17699ae3abb42e /sysutils/di/Makefile
parent05e4d0543793cc5f750235b94ca1ca2712c81ecf (diff)
downloadports-582a08700a0e05a28e8c3e86b0eb73bd337216da.tar.gz
ports-582a08700a0e05a28e8c3e86b0eb73bd337216da.zip
Notes
Diffstat (limited to 'sysutils/di/Makefile')
-rw-r--r--sysutils/di/Makefile50
1 files changed, 3 insertions, 47 deletions
diff --git a/sysutils/di/Makefile b/sysutils/di/Makefile
index 7116a5c3ab8a..3373f986e821 100644
--- a/sysutils/di/Makefile
+++ b/sysutils/di/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= di
-PORTVERSION= 4.19
+PORTVERSION= 4.22
CATEGORIES= sysutils
MASTER_SITES= http://www.gentoo.com/di/ \
http://fresh.t-systems-sfr.com/unix/src/privat2/
@@ -19,60 +19,16 @@ MAN1= di.1
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB= NLS=""
-DI_BUILD_NO_NLS= 0
.else
-DI_BUILD_NO_NLS= 1
PLIST_SUB= NLS="@comment "
+MAKE_ENV+= DI_NO_NLS=T
.endif
-USE_PERL5_BUILD= yes
+MAKE_ENV+= LDFLAGS="${LDFLAGS}" prefix="${PREFIX}"
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e "s|zoneid_t|zoneId_t|g" ${WRKSRC}/di.c
-pre-configure:
- @${CHMOD} +x ${WRKSRC}/Build
- @${CHMOD} +x ${WRKSRC}/features/turnoffnls.sh
-
-do-configure:
- (cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} DI_BUILD_MKCONFIG_PL=1 \
- CC="${CC}" LDFLAGS="${LDFLAGS}" \
- prefix="${PREFIX}" LOCALEDIR="${PREFIX}/share/locale" \
- DI_BUILD_NO_NLS=${DI_BUILD_NO_NLS} \
- ./Build config.h)
-
-do-build:
- (cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} \
- CC="${CC}" LDFLAGS="${LDFLAGS}" \
- prefix="${PREFIX}" LOCALEDIR="${PREFIX}/share/locale" \
- DI_BUILD_NO_NLS=${DI_BUILD_NO_NLS} \
- ./Build)
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/di ${PREFIX}/bin
- ${LN} -sf ${PREFIX}/bin/di ${PREFIX}/bin/mi
- ${INSTALL_MAN} ${WRKSRC}/di.1 ${PREFIX}/man/man1
-.if !defined(WITHOUT_NLS)
- (cd ${WRKSRC}; \
- ${SETENV} ${MAKE_ENV} \
- CC="${CC}" LDFLAGS="${LDFLAGS}" \
- prefix="${PREFIX}" \
- LOCALEDIR="${PREFIX}/share/locale" \
- ./Build build-po)
- -(cd ${WRKSRC}/po;for i in *.po; do \
- j=`echo $$i | ${SED} 's,\\.po$$,,'`; \
- test -d ${PREFIX}/share/locale/$$j || \
- ${MKDIR} ${PREFIX}/share/locale/$$j; \
- test -d ${PREFIX}/share/locale/$$j/LC_MESSAGES || \
- ${MKDIR} ${PREFIX}/share/locale/$$j/LC_MESSAGES; \
- ${INSTALL_DATA} $$j.mo \
- ${PREFIX}/share/locale/$$j/LC_MESSAGES/di.mo; \
- ${RM} -f $$j.mo; \
- done)
-.endif
-
.include <bsd.port.post.mk>