summaryrefslogtreecommitdiff
path: root/biology/xmolwt/Makefile
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-12-07 22:22:06 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-12-07 22:22:06 +0000
commite8c48e4d8491f8927e80eab8cf64b2f1fdf9b394 (patch)
tree7c31c9ed75740bf1f36f07de0b10b9515d874eba /biology/xmolwt/Makefile
parentUpgrade to version R15B03-1, which contains a few minor improvements (diff)
- Support CC properly
- Switch to PLIST_FILES - Add option for GTK2 support PR: ports/174174 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
Notes
Notes: svn path=/head/; revision=308453
Diffstat (limited to 'biology/xmolwt/Makefile')
-rw-r--r--biology/xmolwt/Makefile34
1 files changed, 26 insertions, 8 deletions
diff --git a/biology/xmolwt/Makefile b/biology/xmolwt/Makefile
index 48c7333f13f7..0fe0de72a8ed 100644
--- a/biology/xmolwt/Makefile
+++ b/biology/xmolwt/Makefile
@@ -1,23 +1,41 @@
-# New ports collection makefile for: xmolwt/gmolwt
-# Date created: 1999-08-30
-# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
-#
+# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
# $FreeBSD$
PORTNAME= xmolwt
PORTVERSION= 0.7
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= biology
MASTER_SITES= http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/
MAINTAINER= ports@FreeBSD.org
-COMMENT= Calculate formula weight and percent of each element for a given formula
+COMMENT= Calculate atom weight and percent of each element for a given formula
-WRKSRC= ${WRKDIR}/${DISTNAME}
-MAKEFILE= Makefile.gtk
+OPTIONS_DEFINE= GTK2
USE_GMAKE= yes
+MAKEFILE= Makefile.gtk
+ALL_TARGET= gmolwt
+MAKE_JOBS_SAFE= yes
+
+PORTDOCS= *
+PLIST_FILES= bin/gmolwt bin/molwt
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGTK2}
+USE_GNOME= gtk20
+USE_PKGCONFIG= build
+MAKE_ENV+= GTKCONFIG="pkg-config gtk+-2.0"
+.else
USE_GNOME= gtk12
+MAKE_ENV+= GTKCONFIG="${GTK_CONFIG}"
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/^CC/s| =| ?=| ; \
+ /^CFLAGS/s| =| +=| ; \
+ /^GTKCONFIG/s| =| ?=|' ${WRKSRC}/Makefile.gtk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gmolwt ${PREFIX}/bin