aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gengetopt/Makefile
blob: 27bf716a96fb17080ba73090c6f275e850bcbdcd (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
# ex:ts=8
# New ports collection makefile for:    gengetopt
# Date created:             12 October 2000
# Whom:                 Cyrille Lefevre <clefevre@citeweb.net>
#
# $FreeBSD$
#

PORTNAME=   gengetopt
PORTVERSION=    2.15
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= laszlof@vonostingroup.com
COMMENT=    A tool for generating a C function which parses command line arguments

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE=  yes

MAN1=       gengetopt.1
INFO=       gengetopt

post-patch:
    @${RM} ${WRKSRC}/doc/gengetopt.info

.if defined(NOPORTDOCS)
do-install:
    @cd ${INSTALL_WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
    @cd ${INSTALL_WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${GMAKE} \
        ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-man
.endif

.include <bsd.port.mk>