2012-10-06 16:35:45 +02:00
|
|
|
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
2003-06-14 01:56:42 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= getopt
|
2014-12-04 16:08:30 +01:00
|
|
|
PORTVERSION= 1.1.6
|
2003-06-14 01:56:42 +02:00
|
|
|
CATEGORIES= misc
|
2014-11-21 22:49:38 +01:00
|
|
|
MASTER_SITES= http://frodo.looijaard.name/system/files/software/getopt/ \
|
2014-08-19 21:51:01 +02:00
|
|
|
LOCAL/sunpoet
|
2003-06-14 01:56:42 +02:00
|
|
|
|
2014-09-30 17:23:32 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2013-03-08 21:23:38 +01:00
|
|
|
COMMENT= Replacement for getopt(1) that supports GNU-style long options
|
2003-06-14 01:56:42 +02:00
|
|
|
|
2014-11-24 19:24:42 +01:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
2003-06-14 01:56:42 +02:00
|
|
|
|
2014-09-30 17:23:32 +02:00
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
2014-09-30 18:19:41 +02:00
|
|
|
OPTIONS_SUB= yes
|
2014-09-30 17:23:32 +02:00
|
|
|
|
|
|
|
MAKE_ARGS= CC=${CC} LIBCGETOPT=0
|
|
|
|
USES= gmake
|
2014-07-16 05:00:46 +02:00
|
|
|
|
2014-08-19 21:51:01 +02:00
|
|
|
PORTDOCS= Changelog README
|
2010-02-11 20:44:47 +01:00
|
|
|
|
2014-09-30 17:23:32 +02:00
|
|
|
NLS_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
NLS_MAKE_ARGS= WITHOUT_GETTEXT=0
|
|
|
|
NLS_MAKE_ARGS_OFF= WITHOUT_GETTEXT=1
|
|
|
|
NLS_LDFLAGS= -L${LOCALBASE}/lib -lintl
|
|
|
|
NLS_USES= gettext
|
|
|
|
|
2014-10-01 22:16:16 +02:00
|
|
|
post-patch:
|
2014-10-02 12:58:17 +02:00
|
|
|
@${RM} ${WRKSRC}/gnu/*.o
|
2014-10-01 22:16:16 +02:00
|
|
|
|
2003-06-14 01:56:42 +02:00
|
|
|
post-install:
|
2014-08-19 21:51:01 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
|
2003-06-14 01:56:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|