1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/biology/seaview/Makefile
Alexey Dokuchaev 0ee21a35d1 biology/seaview: in preparation to FLTK update, unbreak the port
Ensure there is only one variable definition per each object, as
the C (and C++) standards mandated for years and is now enforced
by modern toolchains.
2021-08-14 08:58:03 +00:00

57 lines
1.6 KiB
Makefile

# Created by: frankch@waru.life.nthu.edu.tw
PORTNAME= seaview
PORTVERSION= 5.0.4
PORTEPOCH= 1
CATEGORIES= biology
MASTER_SITES= ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/seaview/archive/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Multiple DNA/protein sequence alignment editor
LICENSE= GPLv3
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \
libfontconfig.so:x11-fonts/fontconfig \
libpng.so:graphics/png
PORTSCOUT= skipv:4.6.1.3
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gmake jpeg xorg
USE_XORG= x11 xcursor xext xfixes xft xinerama xrender
MAKE_ENV= HELPFILE='-DDEFAULT_HELPFILE=\"${DATADIR}/seaview.html\"' \
PHYMLNAME='-DPHYMLNAME=\"phyml\"' \
IFLTK='-I${LOCALBASE}/include' \
LFLTK='-L${LOCALBASE}/lib' \
USE_XFT='-DUSE_XFT' \
OPT="${CFLAGS}"
ALL_TARGET= ${PORTNAME}
DESKTOP_ENTRIES="SeaView" "" "${PREFIX}/share/pixmaps/seaview.xpm" "seaview" \
"Biology;Science;" true
post-patch:
${REINPLACE_CMD} -e \
's|^\(CC\) |#\1 | ; s|-ldl || ; \
s|^\(CXX\) |#\1 |' ${WRKSRC}/Makefile
${REINPLACE_CMD} -E \
'/firstplotblock|javarun|\*progname/s,^,extern ,' \
${WRKSRC}/csrc/phylip.h ${WRKSRC}/csrc/protpars.c
${ECHO_CMD} 'boolean javarun;' >> ${WRKSRC}/csrc/phylip.c
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} seaview \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} seaview.1 \
${STAGEDIR}${MANPREFIX}/man/man1)
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} seaview.html \
${STAGEDIR}${DATADIR})
(cd ${WRKSRC} && ${INSTALL_DATA} seaview.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps)
.include <bsd.port.mk>