svn commit: r353087 - head/math/libmissing
Baptiste Daroussin
bapt at FreeBSD.org
Tue May 6 12:26:19 UTC 2014
Author: bapt
Date: Tue May 6 12:26:18 2014
New Revision: 353087
URL: http://svnweb.freebsd.org/changeset/ports/353087
QAT: https://qat.redports.org/buildarchive/r353087/
Log:
Support stage
Modernize
Modified:
head/math/libmissing/Makefile
Modified: head/math/libmissing/Makefile
==============================================================================
--- head/math/libmissing/Makefile Tue May 6 12:26:13 2014 (r353086)
+++ head/math/libmissing/Makefile Tue May 6 12:26:18 2014 (r353087)
@@ -9,17 +9,17 @@ MASTER_SITES= LOCAL/bf
MAINTAINER= bf at FreeBSD.org
COMMENT= Standard math functions missing from the FreeBSD libm
-LICENSE= BSD
+LICENSE= BSD2CLAUSE
LIB_DEPENDS= libmpc.so:${PORTSDIR}/math/mpc
USE_LDCONFIG= yes
-USE_XZ= yes
+USES= tar:xz uidfix
MAKE_ENV= LDADD=-lmpc LIB=missing SHLIB_MAJOR="${SHLIB_MAJOR}" \
- SRCCONF=/dev/null SRCS="${SRCS}"
+ SRCCONF=/dev/null SRCS="${SRCS}" __MAKE_CONF=/dev/null
-OPTIONS_DEFINE= PROFILE
+OPTIONS_DEFINE= PROFILE EXAMPLES
PLIST_FILES= include/missing_complex.h \
include/missing_math.h \
@@ -31,19 +31,16 @@ SRCS= libmissing.c
CFLAGS+= -fno-builtin -fno-math-errno -I. -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+PORTEXAMPLES= ${SRCS}
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${OSVERSION} > 1000054
LDFLAGS+= -Wl,-z,interpose
.endif
-.if ${PORT_OPTIONS:MPROFILE} || defined(WITH_PROFILE)
-.if defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE)
-IGNORE = you have defined WITH_PROFILE, but have also defined\
-WITHOUT_PROFILE, NOPROFILE, or NO_PROFILE
-.elif !exists(/usr/lib/libc_p.a)
+.if ${PORT_OPTIONS:MPROFILE}
+.if !exists(/usr/lib/libc_p.a)
IGNORE = you have chosen WITH_PROFILE, but have not installed the\
base system profiling libraries
.endif
@@ -81,11 +78,8 @@ check regression-test test: build
post-install:
@cd ${WRKSRC}; ${INSTALL_DATA} missing_complex.h missing_math.h \
- ${PREFIX}/include
-.if !${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- @cd ${WRKSRC}; ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+ ${STAGEDIR}${PREFIX}/include
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @cd ${WRKSRC}; ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
-PORTEXAMPLES= ${SRCS}
-.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list