pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

vcflib: Organize Makefile



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Fri Mar 30 12:54:25 2018 -0500
Changeset:	0fb30ed08b1e0f28d56238c15f6f0f2415096028

Modified Files:
	vcflib/Makefile

Log Message:
vcflib: Organize Makefile

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0fb30ed08b1e0f28d56238c15f6f0f2415096028

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 vcflib/Makefile | 27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

diffs:
diff --git a/vcflib/Makefile b/vcflib/Makefile
index 7256a767f7..4710e97213 100644
--- a/vcflib/Makefile
+++ b/vcflib/Makefile
@@ -17,11 +17,10 @@ LICENSE=	mit
 USE_LANGUAGES=	c c++
 USE_TOOLS+=	gmake
 
-pre-configure:
-	${CP} ${FILESDIR}/Makefile.external-libs ${WRKSRC}
-
-post-install:
-	cd ${DESTDIR}${PREFIX}/lib && ${LN} -s libvcflib.so.1 libvcflib.so
+SUBST_CLASSES+=	ldflags
+SUBST_FILES.ldflags=	${WRKSRC}/Makefile.external-libs
+SUBST_STAGE.ldflags=	post-patch
+SUBST_SED.ldflags=	-e "s|LDFLAGS =|LDFLAGS = ${COMPILER_RPATH_FLAG}${PREFIX}/lib|g"
 
 CXXFLAGS+=	-I${PREFIX}/include/smithwaterman \
  		-I${PREFIX}/include/multichoose \
@@ -29,21 +28,13 @@ CXXFLAGS+=	-I${PREFIX}/include/smithwaterman \
  		-I${PREFIX}/include/fastahack \
  		-I${PREFIX}/include/intervaltree \
 		-DVERSION='"${PORTVERSION}"'
-
+LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib
+MAKE_FLAGS=	LIB_PATH+=${COMPILER_RPATH_FLAG}${PREFIX}/lib
 MAKE_FILE=	Makefile.external-libs
 INSTALL_TARGET=	install-strip
 
 PORTVERSION=	0.0.0.20180208
 
-SUBST_CLASSES+=	ldflags
-SUBST_FILES.ldflags=	${WRKSRC}/Makefile.external-libs
-SUBST_STAGE.ldflags=	post-patch
-SUBST_SED.ldflags=	-e "s|LDFLAGS =|LDFLAGS = ${COMPILER_RPATH_FLAG}${PREFIX}/lib|g"
-
-LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/lib
-
-MAKE_FLAGS=	LIB_PATH+=${COMPILER_RPATH_FLAG}${PREFIX}/lib
-
 .include "../../mk/bsd.prefs.mk"
 
 # GCC disables sse2 by default on i386, but it's required for vcflib
@@ -51,6 +42,12 @@ MAKE_FLAGS=	LIB_PATH+=${COMPILER_RPATH_FLAG}${PREFIX}/lib
 CFLAGS+=	-msse2
 .endif
 
+pre-configure:
+	${CP} ${FILESDIR}/Makefile.external-libs ${WRKSRC}
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/lib && ${LN} -s libvcflib.so.1 libvcflib.so
+
 .include "../../wip/htslib/buildlink3.mk"
 .include "../../wip/tabixpp/buildlink3.mk"
 .include "../../wip/smithwaterman/buildlink3.mk"


Home | Main Index | Thread Index | Old Index