42 lines
886 B
Makefile
42 lines
886 B
Makefile
# original taken from FreeBSD
|
|
# $OpenBSD: Makefile,v 1.4 2000/02/12 08:02:24 turan Exp $
|
|
#
|
|
|
|
DISTNAME= fileutils-4.0
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= fileutils
|
|
SEPARATE_BUILD=concurrent
|
|
|
|
#WANT_NLS=yes
|
|
|
|
.if defined(WANT_NLS)
|
|
NLS_CHOICE=--enable-nls
|
|
RUN_DEPENDS= gettext:${PORTSDIR}/devel/gettext
|
|
LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext
|
|
PLIST=${PKGDIR}/PLIST.nls
|
|
PKGNAME=gnuls-4.0-nls
|
|
.else
|
|
NLS_CHOICE=--disable-nls
|
|
PKGNAME= gnuls-4.0
|
|
.endif
|
|
|
|
MAINTAINER= ports@openbsd.org
|
|
|
|
LICENSE_TYPE= GPL
|
|
PERMIT_PKG_CDROM= YES
|
|
PERMIT_PKG_FTP= YES
|
|
PERMIT_DISTF_CDROM= YES
|
|
PERMIT_DISTF_FTP= YES
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS=--program-transform-name=s,ls,gnuls, ${NLS_CHOICE}
|
|
|
|
post-install:
|
|
@for i in linuxls vdir dir; \
|
|
do cd ${PREFIX}/man/man1 && ${LN} -fs gnuls.1 $$i.1; \
|
|
cd ${PREFIX}/bin && ${LN} -f gnuls $$i; \
|
|
done
|
|
|
|
.include <bsd.port.mk>
|