1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- STAGE-clean

- Add LICENSE
This commit is contained in:
Pietro Cerutti 2014-02-05 14:37:18 +00:00
parent 7610f8e1f0
commit ad55e0a941
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342713
2 changed files with 28 additions and 17 deletions

View File

@ -9,29 +9,36 @@ MASTER_SITES= SF
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Read, manipulate, and display geo data
LIB_DEPENDS= libtclgeomap.so:${PORTSDIR}/astro/tclgeomap
NO_STAGE= yes
LICENSE= GPLv2
LIB_DEPENDS= libtclgeomap.so:${PORTSDIR}/astro/tclgeomap
USES+= tk
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tclgeomap-include=${LOCALBASE}/include/tclgeomap --with-x \
--with-tcl=${TCL_LIBDIR} --with-tclinclude=${TCL_INCLUDEDIR} \
--with-tk=${TK_LIBDIR} --with-tkinclude=${TK_INCLUDEDIR} \
--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include
MAKE_ENV+= TCLGEOMAP_LIB="-L ${LOCALBASE}/lib -ltclgeomap"
USES+= tk
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/unix
PLIST_SUB= INC=include/${PORTNAME} LIB=lib/${PORTNAME}
USE_LDCONFIG= yes
MANN= igeomap.n tkgeomap.n tkgeomap_procs.n wdgeomap.n
post-install:
@${LN} -sf ${PREFIX}/lib/lib${PORTNAME}.so ${PREFIX}/lib/lib${PORTNAME}.so.0
post-patch:
@${REINPLACE_CMD} -e '/=.*PACKAGE_VERSION/s|$${PACKAGE_VERSION}||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@PACKAGE_VERSION@||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/^package/!s|@PACKAGE_VERSION@||g' ${WRKSRC}/pkgIndex.tcl.in
@${REINPLACE_CMD} -e '2s|.*|exit 0|' ${WRKSRC}/mkLinks
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/tkgeomap
${FIND} ${WRKSRC}/.. -name "*.h" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/tkgeomap \;
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/tkgeomap
${INSTALL_DATA} ${WRKSRC}/../library/tkgeomap_procs.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
${INSTALL_DATA} ${WRKSRC}/../library/wdgeomap.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
${INSTALL_DATA} ${WRKSRC}/libtkgeomap.so ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
${LN} -sf libtkgeomap.so.0 ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so
${FIND} ${WRKSRC}/../doc -name "*.n" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/mann \;
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
.include <bsd.port.mk>

View File

@ -1,9 +1,13 @@
lib/libtkgeomap.so
lib/libtkgeomap.so.0
%%INC%%/tkgeomap.h
%%INC%%/tkgeomapInt.h
%%LIB%%/pkgIndex.tcl
%%LIB%%/tkgeomap_procs.tcl
%%LIB%%/wdgeomap.tcl
@dirrm %%INC%%
@dirrm %%LIB%%
include/tkgeomap/tkgeomap.h
include/tkgeomap/tkgeomapInt.h
lib/tkgeomap/pkgIndex.tcl
lib/tkgeomap/tkgeomap_procs.tcl
lib/tkgeomap/wdgeomap.tcl
man/mann/igeomap.n.gz
man/mann/tkgeomap.n.gz
man/mann/tkgeomap_procs.n.gz
man/mann/wdgeomap.n.gz
@dirrm include/tkgeomap
@dirrm lib/tkgeomap