Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2012 20:31:14 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306709 - in head/biology/seaview: . files
Message-ID:  <201210302031.q9UKVEDR069575@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Oct 30 20:31:14 2012
New Revision: 306709
URL: http://svn.freebsd.org/changeset/ports/306709

Log:
  - Update to version 4.4.0
  - Mark MAKE_JOBS_SAFE
  - Make dependency on print/pdflib optional
  - Switch to PLIST_FILES
  
  While here:
  - Add missing deps
  - Add desktop entry
  
  PR:		ports/172498
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:	yes

Deleted:
  head/biology/seaview/files/
  head/biology/seaview/pkg-plist
Modified:
  head/biology/seaview/Makefile
  head/biology/seaview/distinfo

Modified: head/biology/seaview/Makefile
==============================================================================
--- head/biology/seaview/Makefile	Tue Oct 30 20:29:52 2012	(r306708)
+++ head/biology/seaview/Makefile	Tue Oct 30 20:31:14 2012	(r306709)
@@ -2,31 +2,69 @@
 # $FreeBSD$
 
 PORTNAME=	seaview
-PORTVERSION=	2006.02.13
-PORTREVISION=	9
+PORTVERSION=	4.4.0
+PORTEPOCH=	1
 CATEGORIES=	biology
-MASTER_SITES=	ftp://pbil.univ-lyon1.fr/pub/mol_phylogeny/seaview/archive/
-DISTNAME=	${PORTNAME}${PORTVERSION:S/.//g}
-EXTRACT_SUFX=	.tar
+MASTER_SITES=	http://pbil.univ-lyon1.fr/software/seaview_data/archive/
+DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Multiple DNA/protein sequence alignment editor
 
-LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
-		pdf.6:${PORTSDIR}/print/pdflib
-
-NO_WRKSUBDIR=	yes
-EXTRACT_CMD=	${CAT}
-EXTRACT_BEFORE_ARGS=	#
+LIB_DEPENDS=	pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
+		jpeg:${PORTSDIR}/graphics/jpeg \
+		png15:${PORTSDIR}/graphics/png \
+		freetype:${PORTSDIR}/print/freetype2 \
+		expat:${PORTSDIR}/textproc/expat2 \
+		fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
+		fltk:${PORTSDIR}/x11-toolkits/fltk \
+		xcb:${PORTSDIR}/x11/libxcb
+
+OPTIONS_DEFINE=	PDFLIB
+OPTIONS_DEFAULT=PDFLIB
+PDFLIB_DESC=	PDFlib support
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+USE_XORG=	x11 xau xdmcp xext xft xinerama xrender
+USE_GMAKE=	yes
+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}
+MAKE_JOBS_SAFE=	yes
+
+DESKTOP_ENTRIES="${PORTNAME}" "${COMMENT}" "" "${PORTNAME}" \
+		"Application;Science;Biology;" "true"
+
+PLIST_FILES=	bin/seaview %%DATADIR%%/seaview.html
+PLIST_DIRS=	%%DATADIR%%
 
-CFLAGS+=	-D HAVE_DIRENT_H \
-		-D DEFAULT_HELPFILE=${PREFIX}/lib/X11/${PORTNAME}/seaview.help
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MPDFLIB}
+LIB_DEPENDS+=	pdf:${PORTSDIR}/print/pdflib
+MAKE_ENV+=	LPDF='-L${LOCALBASE}/lib -lpdf'
+.else
+MAKE_ENV+=	PDF_PS_FLAGS='-DNO_PDF'
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^PDF_PS_FLAGS |#PDF_PS_FLAGS | ; \
+		 s|^FLTK |#FLTK | ; \
+		 s|^USE_XFT |#USE_XFT | ; \
+		 s|^CC |#CC | ; \
+		 s|^CXX |#CXX | ; \
+		 s|^OPT |#OPT | ; \
+		 s|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_SCRIPT} ${WRKDIR}/seaview_align.sh ${PREFIX}/bin
-	@${MKDIR} ${PREFIX}/lib/X11/${PORTNAME}
-	${INSTALL_DATA} ${WRKDIR}/seaview.help ${PREFIX}/lib/X11/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/seaview.html ${DATADIR}
 
 .include <bsd.port.mk>

Modified: head/biology/seaview/distinfo
==============================================================================
--- head/biology/seaview/distinfo	Tue Oct 30 20:29:52 2012	(r306708)
+++ head/biology/seaview/distinfo	Tue Oct 30 20:31:14 2012	(r306709)
@@ -1,2 +1,2 @@
-SHA256 (seaview20060213.tar) = 3b6cd132a8c9c2d29881e3bcb14a85b9a52524a5974317a9df09d9e15ffc7776
-SIZE (seaview20060213.tar) = 573952
+SHA256 (seaview_4.4.0.tar.gz) = e1dcaef67cb93da63bfa6fa102042340297c18055928645f03defb6547e9ede3
+SIZE (seaview_4.4.0.tar.gz) = 309611



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210302031.q9UKVEDR069575>