mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
befa71e0f3
Changes: http://www.boost.org/users/history/version_1_71_0.html PR: 238827 Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D20774
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dsr-pdb
|
|
DISTVERSION= 1.0.3
|
|
PORTREVISION= 4
|
|
CATEGORIES= biology
|
|
MASTER_SITES= https://graphics.stanford.edu/~drussel/
|
|
DISTNAME= ${PORTNAME}
|
|
DIST_SUBDIR= ${PORTNAME}-${DISTVERSION}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Simple C++ PDB reader (reads the protein description format)
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.txt
|
|
|
|
LIB_DEPENDS= libboost_program_options.so:devel/boost-libs
|
|
|
|
USES= compiler:c++11-lang gmake libtool localbase:ldflags tar:tgz
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
CXXFLAGS+= -fPIC --std=c++11 # libboost_program_options.so isn't found without --std=c++11
|
|
|
|
post-patch:
|
|
.for dir in lib tools test
|
|
@cd ${WRKSRC}/${dir} && ${LN} -s ../ dsrpdb
|
|
.endfor
|
|
|
|
post-build: # the project itself doesn't support shared libraries in a regular way
|
|
@cd ${WRKSRC}/lib && ${CXX} ${LDFLAGS} --shared -Wl,-soname,libdsrpdb.so -o libdsrpdb.so *.o
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/config.h ${STAGEDIR}${PREFIX}/include/dsrpdb
|
|
${INSTALL_LIB} ${WRKSRC}/lib/libdsrpdb.so ${STAGEDIR}${PREFIX}/lib
|
|
|
|
.include <bsd.port.mk>
|