Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132003207
D52408.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D52408.id.diff
View Options
diff --git a/science/cdf/Makefile b/science/cdf/Makefile
--- a/science/cdf/Makefile
+++ b/science/cdf/Makefile
@@ -1,9 +1,10 @@
PORTNAME= cdf3
DISTVERSION= 3.9.1
+PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://spdf.gsfc.nasa.gov/pub/software/cdf/dist/cdf39_1/
DISTNAME= cdf${VER}-dist-cdf
-DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ${PORTNAME}-${DISTVERSION}
MAINTAINER= alven@FreeBSD.org
COMMENT= Device independent view of the CDF data model
@@ -16,25 +17,28 @@
BUILD_DEPENDS= bash:shells/bash
-USES= fortran ncurses gmake
-
+USES= fortran gmake ncurses
USE_LDCONFIG= yes
+
+MAKE_ARGS+= OS=freebsd ENV=gnu all
MAKE_FLAGS= INSTALLDIR=${STAGEDIR}${PREFIX} OS=freebsd ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
MAKE_JOBS_UNSAFE= yes
-TEST_TARGET= test # XXX: test segfaults
+TEST_TARGET= test
+
+PIE_UNSAFE= yes
-WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
-VER= ${PORTVERSION:S/.//:S/./_/}
-DEFS= B C K
+WRKSRC= ${WRKDIR}/cdf${VER}-dist
+PLIST_SUB= SOVERSION=${DISTVERSION}
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
OPTIONS_DEFINE= DOCS EXAMPLES
-MAKE_ARGS+= OS=freebsd ENV=gnu all
+DEFS= B C K
+VER= ${PORTVERSION:S/.//:S/./_/}
.include <bsd.port.pre.mk>
@@ -49,11 +53,17 @@
.endfor
post-install:
+ ${SED} -i '' 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/bin/definitions.?
+ ${RM} -f ${STAGEDIR}${PREFIX}/CDFLeapSeconds.txt
+ cd ${STAGEDIR}${PREFIX} && \
+ ${FIND} bin/* lib/* -executable -exec ${STRIP_CMD} {} \;
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
- ${SED} -i '' 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/bin/definitions.?
- ${RM} -f ${STAGEDIR}${PREFIX}/CDFLeapSeconds.txt
.include <bsd.port.post.mk>
diff --git a/science/cdf/pkg-plist b/science/cdf/pkg-plist
--- a/science/cdf/pkg-plist
+++ b/science/cdf/pkg-plist
@@ -50,9 +50,9 @@
lib/cdf/help/cdfxp.ilh
lib/cdf/help/skt2cdf.olh
lib/cdf/help/skt2cdfj.olh
-lib/libcdf.3.9.1.so
lib/libcdf.a
lib/libcdf.so
+lib/libcdf.%%SOVERSION%%.so
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/OperateAttributes.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/OperateCDF.c
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/OperateVariables.c
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 9:01 PM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23669156
Default Alt Text
D52408.id.diff (2 KB)
Attached To
Mode
D52408: science/cdf: improve and lint port
Attached
Detach File
Event Timeline
Log In to Comment