2012-12-07 23:22:06 +01:00
|
|
|
# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
1999-09-06 22:04:15 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 00:04:57 +02:00
|
|
|
PORTNAME= xmolwt
|
2002-01-23 20:52:38 +01:00
|
|
|
PORTVERSION= 0.7
|
2014-09-13 17:11:27 +02:00
|
|
|
PORTREVISION= 6
|
1999-09-06 22:04:15 +02:00
|
|
|
CATEGORIES= biology
|
|
|
|
MASTER_SITES= http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/
|
|
|
|
|
2006-04-05 08:13:46 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-12-07 23:22:06 +01:00
|
|
|
COMMENT= Calculate atom weight and percent of each element for a given formula
|
1999-09-06 22:04:15 +02:00
|
|
|
|
2013-06-19 21:07:35 +02:00
|
|
|
OPTIONS_DEFINE= DOCS GTK2
|
1999-09-06 22:04:15 +02:00
|
|
|
|
2014-03-13 08:41:34 +01:00
|
|
|
USES= gmake
|
2012-12-07 23:22:06 +01:00
|
|
|
MAKEFILE= Makefile.gtk
|
|
|
|
ALL_TARGET= gmolwt
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES= bin/gmolwt bin/molwt
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
GTK2_USES= pkgconfig
|
|
|
|
GTK2_USE= GNOME=gtk20
|
|
|
|
GTK2_MAKE_ENV= GTKCONFIG="pkg-config gtk+-2.0"
|
|
|
|
GTK2_USE_OFF= GNOME=gtk12
|
|
|
|
GTK2_MAKE_ENV_OFF= GTKCONFIG="${GTK_CONFIG}"
|
2012-12-07 23:22:06 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^CC/s| =| ?=| ; \
|
|
|
|
/^CFLAGS/s| =| +=| ; \
|
|
|
|
/^GTKCONFIG/s| =| ?=|' ${WRKSRC}/Makefile.gtk
|
1999-09-06 22:04:15 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-03-24 12:06:56 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gmolwt ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${LN} -sf gmolwt ${STAGEDIR}${PREFIX}/bin/molwt
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} Howtouse.* Readme Xmolwt dot.gtkrc \
|
|
|
|
*.html *.gif ${STAGEDIR}${DOCSDIR})
|
1999-09-06 22:04:15 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|