aboutsummaryrefslogtreecommitdiffstats
path: root/misc/getopt/Makefile
blob: 8d49c3f8033f88c08b537f1d10ee2bebf09ddd3c (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
# 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

USES=       gettext gmake

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

MAN1=       getopt.1
DOCS=       Changelog README

.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>