2009-03-15 17:23:09 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2009/03/15 21:23:09 jasper Exp $
|
2006-11-03 08:25:02 -05:00
|
|
|
|
2007-09-15 19:54:16 -04:00
|
|
|
COMMENT= GNU getopt(1) utility
|
2006-11-03 08:25:02 -05:00
|
|
|
|
|
|
|
DISTNAME= getopt-1.1.4
|
2009-03-15 17:23:09 -04:00
|
|
|
PKGNAME= gnu${DISTNAME}p2
|
2006-11-03 08:25:02 -05:00
|
|
|
CATEGORIES= misc
|
|
|
|
|
2008-08-19 18:17:49 -04:00
|
|
|
HOMEPAGE= http://software.frodo.looijaard.name/getopt/
|
|
|
|
|
2009-01-18 18:19:15 -05:00
|
|
|
# GPLv2
|
2006-11-03 08:25:02 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-08-19 18:17:49 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/
|
2006-11-03 08:25:02 -05:00
|
|
|
|
|
|
|
WANTLIB= c
|
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MAKE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2009-01-18 18:19:15 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv" \
|
|
|
|
CC="${CC}"
|
2006-11-03 08:25:02 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC} && sed -e 's,/usr/local,${LOCALBASE},g' \
|
|
|
|
< ${WRKSRC}/getopt.1 > ${WRKSRC}/getopt.1.fixed
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/getopt ${PREFIX}/bin/gnugetopt
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/getopt.1.fixed ${PREFIX}/man/man1/gnugetopt.1
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnugetopt
|
2006-11-05 09:17:05 -05:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/getopt-parse.bash \
|
|
|
|
${PREFIX}/share/examples/gnugetopt
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/getopt-parse.tcsh \
|
2006-11-03 08:25:02 -05:00
|
|
|
${PREFIX}/share/examples/gnugetopt
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|