2003-06-13 23:56:42 +00:00
|
|
|
# New ports collection makefile for: getopt
|
|
|
|
# Date created: 2003-06-05
|
|
|
|
# Whom: Sergei Kolobov <sergei@kolobov.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= getopt
|
2005-11-21 13:15:48 +00:00
|
|
|
PORTVERSION= 1.1.4
|
2010-05-31 02:01:56 +00:00
|
|
|
PORTREVISION= 2
|
2003-06-13 23:56:42 +00:00
|
|
|
CATEGORIES= misc
|
2005-11-21 13:15:48 +00:00
|
|
|
MASTER_SITES= http://software.frodo.looijaard.name/getopt/files/
|
2003-06-13 23:56:42 +00:00
|
|
|
|
2011-08-21 20:51:40 +00:00
|
|
|
MAINTAINER= eadler@FreeBSD.org
|
2003-06-13 23:56:42 +00:00
|
|
|
COMMENT= A getopt(1) replacement that supports GNU-style long options
|
|
|
|
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2003-06-13 23:56:42 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lintl
|
2011-09-23 22:26:39 +00:00
|
|
|
MAKE_ENV= LIBCGETOPT=0
|
2003-06-13 23:56:42 +00:00
|
|
|
|
|
|
|
MAN1= getopt.1
|
|
|
|
DOCS= Changelog README
|
|
|
|
|
2010-02-11 19:44:47 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}|' ${WRKSRC}/Makefile
|
|
|
|
|
2003-06-13 23:56:42 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|