freebsd-ports/misc/getopt/Makefile
Eitan Adler ed59156ea9 Clean up my ports (and a couple of ports@ owned ones):
- Fix COMMENT
- Add MAKE_JOBS_SAFE where appropriate
- Change ordering of LICENSE lines
- Fix new header format
- Etc.

Reviewed by:	drogoh (on irc)
2013-03-08 20:23:38 +00:00

35 lines
729 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/
MAINTAINER= eadler@FreeBSD.org
COMMENT= Replacement for getopt(1) that supports GNU-style long options
USE_GETTEXT= yes
USE_GMAKE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
MAKE_ENV+= LIBCGETOPT=0
MAN1= getopt.1
DOCS= Changelog README
MAKE_JOBS_SAFE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}|' ${WRKSRC}/Makefile
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>