View | Details | Raw Unified | Return to bug 174174
Collapse All | Expand All

(-)biology/xmolwt/Makefile (-7 / +25 lines)
Lines 1-23 Link Here
1
# New ports collection makefile for:	xmolwt/gmolwt
1
# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
2
# Date created:		1999-08-30
3
# Whom:			Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
4
#
5
# $FreeBSD: head/biology/xmolwt/Makefile 300895 2012-07-14 12:56:14Z beat $
2
# $FreeBSD: head/biology/xmolwt/Makefile 300895 2012-07-14 12:56:14Z beat $
6
3
7
PORTNAME=	xmolwt
4
PORTNAME=	xmolwt
8
PORTVERSION=	0.7
5
PORTVERSION=	0.7
9
PORTREVISION=	4
6
PORTREVISION=	5
10
CATEGORIES=	biology
7
CATEGORIES=	biology
11
MASTER_SITES=	http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/
8
MASTER_SITES=	http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/
12
9
13
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	Calculate formula weight and percent of each element for a given formula
11
COMMENT=	Calculate formula weight and percent of each element for a given formula
15
12
16
WRKSRC=		${WRKDIR}/${DISTNAME}
13
OPTIONS_DEFINE=	GTK2
17
MAKEFILE=	Makefile.gtk
18
14
19
USE_GMAKE=	yes
15
USE_GMAKE=	yes
16
MAKEFILE=	Makefile.gtk
17
ALL_TARGET=	gmolwt
18
MAKE_JOBS_SAFE=	yes
19
20
PORTDOCS=	*
21
PLIST_FILES=	bin/gmolwt bin/molwt
22
23
.include <bsd.port.options.mk>
24
25
.if ${PORT_OPTIONS:MGTK2}
26
USE_GNOME=	gtk20
27
USE_PKGCONFIG=	build
28
MAKE_ENV+=	GTKCONFIG="pkg-config gtk+-2.0"
29
.else
20
USE_GNOME=	gtk12
30
USE_GNOME=	gtk12
31
MAKE_ENV+=	GTKCONFIG="${GTK_CONFIG}"
32
.endif
33
34
post-patch:
35
	@${REINPLACE_CMD} -e \
36
		'/^CC/s| =| ?=| ; \
37
		 /^CFLAGS/s| =| +=| ; \
38
		 /^GTKCONFIG/s| =| ?=|' ${WRKSRC}/Makefile.gtk
21
39
22
do-install:
40
do-install:
23
	${INSTALL_PROGRAM} ${WRKSRC}/gmolwt ${PREFIX}/bin
41
	${INSTALL_PROGRAM} ${WRKSRC}/gmolwt ${PREFIX}/bin
(-)biology/xmolwt/files/patch-aa (-16 lines)
Lines 1-16 Link Here
1
--- Makefile.gtk.orig	Mon Mar 12 16:24:08 2001
2
+++ Makefile.gtk	Tue Mar 13 02:31:51 2001
3
@@ -1,9 +1,11 @@
4
 # $Id: Makefile.gtk,v 1.3 2001/03/12 07:24:08 rmiya Exp $
5
 CC = gcc
6
-CFLAGS = -Wall -DGTK
7
-GTKCONFIG = gtk12-config
8
+CFLAGS += -Wall -DGTK
9
+GTKCONFIG = $(GTK_CONFIG)
10
 OBJS = molwt.o usage.o element.o reduce.o count.o calculate.o \
11
   initwidget.o allowcase.o inputformula.o addtolist.o atomicnumber.o
12
+
13
+all: gmolwt
14
 
15
 molwt: gmolwt
16
 	rm -f molwt
(-)biology/xmolwt/pkg-plist (-11 lines)
Lines 1-11 Link Here
1
bin/gmolwt
2
bin/molwt
3
%%PORTDOCS%%%%DOCSDIR%%/Howtouse.jp
4
%%PORTDOCS%%%%DOCSDIR%%/Readme
5
%%PORTDOCS%%%%DOCSDIR%%/Xmolwt
6
%%PORTDOCS%%%%DOCSDIR%%/dot.gtkrc
7
%%PORTDOCS%%%%DOCSDIR%%/gmolwt.gif
8
%%PORTDOCS%%%%DOCSDIR%%/xmolwt-e.html
9
%%PORTDOCS%%%%DOCSDIR%%/xmolwt.gif
10
%%PORTDOCS%%%%DOCSDIR%%/xmolwt.html
11
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 174174