blob: 64ea2164476f2199268711458a5053a4aca3f739 (
plain)
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
40
41
|
# $NetBSD: Makefile,v 1.31 2009/04/09 00:48:07 joerg Exp $
#
DISTNAME= libgetopt-1.4.4
CATEGORIES= pkgtools sysutils
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Library for handling --long options
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= YES
WRKSRC= ${WRKDIR}/libgetopt
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" || ${OPSYS} == "HPUX"
CFLAGS+= -DREPLACE_GETOPT
.endif
INSTALLATION_DIRS= include lib ${PKGMANDIR}/man3
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${FILESDIR}/getopt_long.? ${WRKSRC}
${CP} ${FILESDIR}/getopt.h ${WRKSRC}
do-build:
cd ${WRKSRC} && ${LIBTOOL} --mode=compile ${COMPILE.c} getopt_long.c
cd ${WRKSRC} && ${LIBTOOL} --mode=link ${LINK.c} -o libgetopt.la getopt_long.lo -version-info 5:1:4 -rpath ${PREFIX}/lib
do-install:
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libgetopt.la \
${DESTDIR}${PREFIX}/lib/
${INSTALL_DATA} ${WRKSRC}/getopt.h ${DESTDIR}${PREFIX}/include/
${INSTALL_MAN} ${WRKSRC}/getopt_long.3 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/
.include "../../mk/bsd.pkg.mk"
|