aboutsummaryrefslogtreecommitdiffstats
path: root/misc/getopt/Makefile
blob: f0d8630ecd88018075ef897e7c0bd2c43917c865 (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
34
35
36
37
38
39
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

PORTNAME=   getopt
PORTVERSION=    1.1.6
CATEGORIES= misc
MASTER_SITES=   http://frodo.looijaard.name/system/files/software/getopt/ \
        LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Replacement for getopt(1) that supports GNU-style long options

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

MAKE_ARGS=  CC=${CC} LIBCGETOPT=0
USES=       gmake

PORTDOCS=   Changelog README

NLS_MAKE_ARGS=      WITHOUT_GETTEXT=0
NLS_MAKE_ARGS_OFF=  WITHOUT_GETTEXT=1
NLS_LDFLAGS=        -lintl
NLS_USES=       gettext localbase:ldflags

post-patch:
    @${RM} ${WRKSRC}/gnu/*.o

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>