aboutsummaryrefslogtreecommitdiff
path: root/biology/xmolwt
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
commit89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df (patch)
treedab293772a4c12d5e7f6c0f30c1e8ae09e1cfe4d /biology/xmolwt
parent65b63032bfb3a3f1c8ac4ee660ac83927b43c92a (diff)
downloadports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.tar.gz
ports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.zip
Notes
Diffstat (limited to 'biology/xmolwt')
-rw-r--r--biology/xmolwt/Makefile24
-rw-r--r--biology/xmolwt/files/patch-aa22
2 files changed, 27 insertions, 19 deletions
diff --git a/biology/xmolwt/Makefile b/biology/xmolwt/Makefile
index e43a19ef0440..10eee7611305 100644
--- a/biology/xmolwt/Makefile
+++ b/biology/xmolwt/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: xmolwt/gmolwt
-# Date created: 1999-08-30
-# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
+# New ports collection makefile for: xmolwt/gmolwt
+# Date created: 1999-08-30
+# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
#
# $FreeBSD$
@@ -13,25 +13,25 @@ MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-USE_GMAKE= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-post-configure:
- (cd ${WRKSRC}; ${CP} Makefile.gtk Makefile)
+WRKSRC= ${WRKDIR}/${DISTNAME}
-pre-install:
- (cd ${WRKSRC}; strip gmolwt)
- ${RM} -rf ${PREFIX}/share/doc/xmolwt
- ${MKDIR} ${PREFIX}/share/doc/xmolwt
+USE_GMAKE= yes
+MAKEFILE= Makefile.gtk
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gmolwt ${PREFIX}/bin
- (cd ${PREFIX}/bin; ln -s gmolwt molwt)
+ ${LN} -sf gmolwt ${PREFIX}/bin/molwt
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/Howtouse.* ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/Xmolwt ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/dot.gtkrc ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/xmolwt
${INSTALL_DATA} ${WRKSRC}/*.gif ${PREFIX}/share/doc/xmolwt
+.endif
.include <bsd.port.mk>
diff --git a/biology/xmolwt/files/patch-aa b/biology/xmolwt/files/patch-aa
index 283e381c93b4..5c212be43bf7 100644
--- a/biology/xmolwt/files/patch-aa
+++ b/biology/xmolwt/files/patch-aa
@@ -1,13 +1,21 @@
-*** Makefile.gtk Sat Aug 28 19:46:47 1999
---- Makefile Mon Aug 30 19:49:21 1999
+*** Makefile.gtk.orig Sat Aug 28 19:46:47 1999
+--- Makefile.gtk Sat Jul 1 15:49:31 2000
***************
-*** 3,8 ****
---- 3,10 ----
- GTKCONFIG = gtk12-config
+*** 1,7 ****
+! CC = gcc
+! CFLAGS = -DGTK
+! GTKCONFIG = gtk12-config
OBJS = molwt.o usage.o element.o reduce.o count.o calculate.o initwidget.o allowcase.o inputformula.o addtolist.o
-+ all: gmolwt
-+
molwt: gmolwt
ln -s gmolwt molwt
+--- 1,9 ----
+! CC ?= gcc
+! CFLAGS += -DGTK
+! GTKCONFIG = $(GTK_CONFIG)
+ OBJS = molwt.o usage.o element.o reduce.o count.o calculate.o initwidget.o allowcase.o inputformula.o addtolist.o
++
++ all: gmolwt
+ molwt: gmolwt
+ ln -s gmolwt molwt