freebsd-ports/misc/getopt/Makefile

39 lines
863 B
Makefile
Raw Normal View History

# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= getopt
PORTVERSION= 1.1.6
CATEGORIES= misc
MASTER_SITES= http://frodo.looijaard.name/system/files/software/getopt/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Replacement for getopt(1) that supports GNU-style long options
2014-11-24 19:24:42 +01:00
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
OPTIONS_DEFINE= DOCS NLS
2014-09-30 18:19:41 +02:00
OPTIONS_SUB= yes
MAKE_ARGS= CC=${CC} LIBCGETOPT=0
USES= gmake
PORTDOCS= Changelog README
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
post-patch:
2014-10-02 12:58:17 +02:00
@${RM} ${WRKSRC}/gnu/*.o
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
.include <bsd.port.mk>