aboutsummaryrefslogtreecommitdiffstats
path: root/astro/cfitsio
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2016-11-21 07:54:22 +0800
committersunpoet <sunpoet@FreeBSD.org>2016-11-21 07:54:22 +0800
commitb899d2b7486472b6c1c52306a97f7705ab471ea1 (patch)
treeb31d4b9ac960e69d3ccd6cf00793eb2971e51b3d /astro/cfitsio
parent9b6bd7e5eb22661926f1e7d470b5ba88e1bdb837 (diff)
downloadfreebsd-ports-gnome-b899d2b7486472b6c1c52306a97f7705ab471ea1.tar.gz
freebsd-ports-gnome-b899d2b7486472b6c1c52306a97f7705ab471ea1.tar.zst
freebsd-ports-gnome-b899d2b7486472b6c1c52306a97f7705ab471ea1.zip
- Use USES=localbase
- Cosmetic change
Diffstat (limited to 'astro/cfitsio')
-rw-r--r--astro/cfitsio/Makefile22
-rw-r--r--astro/cfitsio/pkg-plist4
2 files changed, 12 insertions, 14 deletions
diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile
index 04c7c88e9554..c6f6b9604143 100644
--- a/astro/cfitsio/Makefile
+++ b/astro/cfitsio/Makefile
@@ -19,32 +19,30 @@ LIB_DEPENDS= libf2c.so:lang/f2c
OPTIONS_DEFINE= DOCS
ALL_TARGET= libcfitsio.a shared
-CFLAGS+= -I${INCLUDEDIR}
CONFIGURE_ARGS= ac_cv_prog_FC=f2c
GNU_CONFIGURE= yes
-LIBS+= -L${LIBDIR} -lz
MAKE_ARGS= ZLIB_SOURCES="zlib/zcompress.c zlib/zuncompress.c"
USE_LDCONFIG= yes
-USES= pkgconfig
+USES= localbase pkgconfig
WRKSRC= ${WRKDIR}/${PORTNAME}
-PLIST_SUB= SHLIB_MAJOR_VER=${SHLIB_MAJOR_VER} \
- SHLIB_MINOR_VER=${SHLIB_MINOR_VER}
+PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR} \
+ SHLIB_MINOR=${SHLIB_MINOR}
PORTDOCS= *
-SHLIB_MAJOR_VER=5
-SHLIB_MINOR_VER=${PORTVERSION:S|0$||}
+SHLIB_MAJOR= 5
+SHLIB_MINOR= ${PORTVERSION:S|0$||}
post-patch:
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/*.[chl] ${WRKSRC}/zlib/*.h
do-install:
cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/
- cd ${WRKSRC}/ && ${INSTALL_DATA} libcfitsio.a ${STAGEDIR}${PREFIX}/lib/
- cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.so.${SHLIB_MAJOR_VER}.${SHLIB_MINOR_VER} ${STAGEDIR}${PREFIX}/lib/
- cd ${WRKSRC}/ && ${INSTALL_DATA} cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
- ${LN} -fs libcfitsio.so.${SHLIB_MAJOR_VER}.${SHLIB_MINOR_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.${SHLIB_MAJOR_VER}
- ${LN} -fs libcfitsio.so.${SHLIB_MAJOR_VER} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
+ ${INSTALL_DATA} ${WRKSRC}/libcfitsio.a ${STAGEDIR}${PREFIX}/lib/
+ ${INSTALL_LIB} ${WRKSRC}/libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/cfitsio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
+ ${LN} -fs libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so.${SHLIB_MAJOR}
+ ${LN} -fs libcfitsio.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libcfitsio.so
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
diff --git a/astro/cfitsio/pkg-plist b/astro/cfitsio/pkg-plist
index 2e8d762f1513..5b25c7be33a2 100644
--- a/astro/cfitsio/pkg-plist
+++ b/astro/cfitsio/pkg-plist
@@ -4,6 +4,6 @@ include/fitsio2.h
include/longnam.h
lib/libcfitsio.a
lib/libcfitsio.so
-lib/libcfitsio.so.%%SHLIB_MAJOR_VER%%
-lib/libcfitsio.so.%%SHLIB_MAJOR_VER%%.%%SHLIB_MINOR_VER%%
+lib/libcfitsio.so.%%SHLIB_MAJOR%%
+lib/libcfitsio.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
libdata/pkgconfig/cfitsio.pc