Lines 8-13
Link Here
|
8 |
|
8 |
|
9 |
PORTNAME= argtable |
9 |
PORTNAME= argtable |
10 |
PORTVERSION= 2.5 |
10 |
PORTVERSION= 2.5 |
|
|
11 |
PORTREVISION= 1 |
11 |
CATEGORIES= devel |
12 |
CATEGORIES= devel |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 16-41
Link Here
|
16 |
MAINTAINER= ports@FreeBSD.org |
17 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= An ANSI C library for parsing GNU style command line arguments |
18 |
COMMENT= An ANSI C library for parsing GNU style command line arguments |
18 |
|
19 |
|
19 |
WRKSRC= ${WRKDIR}/${PORTNAME}2 |
|
|
20 |
|
21 |
USE_GETOPT_LONG= yes |
22 |
USE_GETTEXT= yes |
23 |
USE_GNOME= gnometarget |
20 |
USE_GNOME= gnometarget |
24 |
GNU_CONFIGURE= yes |
21 |
USE_GETOPT_LONG= yes |
25 |
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ |
22 |
USE_REINPLACE= yes |
26 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
23 |
USE_AUTOTOOLS= libtool:15 |
27 |
docdir="${PREFIX}/share/doc/${PORTNAME}" |
|
|
28 |
WRKSRC= ${WRKDIR}/${DISTNAME} |
29 |
INSTALLS_SHLIB= yes |
24 |
INSTALLS_SHLIB= yes |
30 |
|
25 |
|
31 |
PORTDOCS= * |
26 |
MAN3= argtable2.3 |
|
|
27 |
MLINKS= argtable2.3 argtable.3 |
32 |
|
28 |
|
33 |
MAN3= argtable.3 |
29 |
post-patch: |
|
|
30 |
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \ |
31 |
s|: install-dist_exampleDATA|:|g' ${WRKSRC}/Makefile.in |
34 |
|
32 |
|
35 |
post-install: |
33 |
post-install: |
36 |
@${FIND} ${EXAMPLESDIR} ! -type d | \ |
34 |
${INSTALL_MAN} ${WRKSRC}/doc/argtable2.3 ${MAN3PREFIX}/man/man3 |
37 |
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} |
35 |
.if !defined(NOPORTDOCS) |
38 |
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \ |
36 |
@${MKDIR} ${DOCSDIR} |
39 |
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} |
37 |
${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DOCSDIR} |
|
|
38 |
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR} |
39 |
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR} |
40 |
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR} |
41 |
@${MKDIR} ${EXAMPLESDIR} |
42 |
${INSTALL_DATA} ${WRKSRC}/example/*.c ${EXAMPLESDIR} |
43 |
${INSTALL_DATA} ${WRKSRC}/example/*.h ${EXAMPLESDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/example/*.txt ${EXAMPLESDIR} |
45 |
.endif |
40 |
|
46 |
|
41 |
.include <bsd.port.mk> |
47 |
.include <bsd.port.mk> |