mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# New ports collection makefile for: di
|
|
# Date created: 31 August 2002
|
|
# Whom: Brad Lanam <bll@gentoo.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= di
|
|
PORTVERSION= 4.9
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.gentoo.com/di/ \
|
|
http://fresh.t-systems-sfr.com/unix/src/privat2/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Disk Information Utility
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
MAN1= di.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 700042
|
|
BROKEN= Broken with gcc 4.2
|
|
.endif
|
|
|
|
do-configure:
|
|
(cd ${WRKSRC}; \
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}" prefix="${PREFIX}" \
|
|
LOCALEDIR="${PREFIX}/share/locale" \
|
|
./Build config.h)
|
|
|
|
do-build:
|
|
(cd ${WRKSRC}; \
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}" prefix="${PREFIX}" \
|
|
LOCALEDIR="${PREFIX}/share/locale" \
|
|
./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
|
|
(cd ${WRKSRC}; \
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
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)
|
|
|
|
.include <bsd.port.post.mk>
|