freebsd-ports/misc/getopt/Makefile
Sunpoet Po-Chuan Hsieh 0b26e86fcf - Cleanup *.o from tarball
PR:		ports/194074
Submitted by:	Vikash Badal <vikashb@where-ever.za.net>
2014-10-01 20:16:16 +00:00

37 lines
831 B
Makefile

# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= getopt
PORTVERSION= 1.1.5
CATEGORIES= misc
MASTER_SITES= http://software.frodo.looijaard.name/getopt/files/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Replacement for getopt(1) that supports GNU-style long options
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS NLS
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:
@${RM} ${WKRSRC}/gnu/*.o
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
.include <bsd.port.mk>