diff options
author | Steve Price <steve@FreeBSD.org> | 2000-07-07 19:59:26 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2000-07-07 19:59:26 +0000 |
commit | 89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df (patch) | |
tree | dab293772a4c12d5e7f6c0f30c1e8ae09e1cfe4d /biology | |
parent | Location on MASTER_SITE has changed. (diff) |
- Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-config
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly
PR: 19623
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'biology')
-rw-r--r-- | biology/xmolwt/Makefile | 24 | ||||
-rw-r--r-- | biology/xmolwt/files/patch-aa | 22 |
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 |