0b26e86fcf
PR: ports/194074 Submitted by: Vikash Badal <vikashb@where-ever.za.net>
37 lines
831 B
Makefile
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>
|