summaryrefslogtreecommitdiff
path: root/misc/getopt/Makefile
blob: bbf3c19530980f4038065ca57a3351c0269f160f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# New ports collection makefile for:	getopt
# Date created:	2003-06-05
# Whom:		Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#

PORTNAME=	getopt
PORTVERSION=	1.1.4
CATEGORIES=	misc
MASTER_SITES=	http://software.frodo.looijaard.name/getopt/files/

MAINTAINER=	sergei@FreeBSD.org
COMMENT=	A getopt(1) replacement that supports GNU-style long options

USE_GETTEXT=		yes
USE_GMAKE=		yes
USE_GETOPT_LONG=	yes

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lintl
MAKE_ENV=	LIBCGETOPT=0 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=		getopt.1
DOCS=		Changelog README

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>