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

(-)converters/gbase/Makefile (-6 / +29 lines)
Lines 7-23 Link Here
7
7
8
PORTNAME=	gbase
8
PORTNAME=	gbase
9
PORTVERSION=	0.5
9
PORTVERSION=	0.5
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	converters
11
CATEGORIES=	converters
12
MASTER_SITES=	http://www.hibernaculum.net/download/
12
MASTER_SITES=	http://www.fluxcode.net/
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A program to convert between the 4 common bases used in programming
15
COMMENT=	A program to convert between the 4 common bases used in programming
16
16
17
PLIST_FILES=	bin/gbase
17
OPTIONS=	GTK2 "GTK+-2 support" off
18
USE_GNOME=	gtk12
18
19
USE_GNOME=	pkgconfig
20
21
PLIST_FILES=	bin/${PORTNAME}
22
23
.include <bsd.port.pre.mk>
24
25
.if defined(WITH_GTK2)
26
USE_GNOME+=	gtk12
27
GTK_CFLAGS=	`pkg-config --cflags gtk+-2.0`
28
GTK_LIBS=	`pkg-config --libs gtk+-2.0`
29
.else
30
USE_GNOME+=	gtk12
31
GTK_CFLAGS=	`pkg-config --cflags gtk+`
32
GTK_LIBS=	`pkg-config --libs gtk+`
33
.endif
34
35
post-patch:
36
	@${REINPLACE_CMD} -e \
37
		's|(i == argc)|(i+1 == argc)|' ${WRKSRC}/${PORTNAME}.c
38
39
do-build:
40
	cd ${WRKSRC}; ${CC} ${CFLAGS} ${GTK_CFLAGS} ${PORTNAME}.c \
41
		-o ${PORTNAME} ${GTK_LIBS}
19
42
20
do-install:
43
do-install:
21
	@${INSTALL_PROGRAM} ${WRKSRC}/gbase ${PREFIX}/bin
44
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
22
45
23
.include <bsd.port.mk>
46
.include <bsd.port.post.mk>
(-)converters/gbase/files/patch-Makefile (-22 lines)
Lines 1-22 Link Here
1
--- Makefile.orig	Fri Sep  7 22:10:42 2001
2
+++ Makefile	Fri Sep  7 22:20:26 2001
3
@@ -1,6 +1,7 @@
4
-CC = gcc
5
-CCFLAGS = `gtk-config --cflags`
6
-LDFLAGS = `gtk-config --libs`
7
+CFLAGS += `${GTK_CONFIG} --cflags`
8
+LDFLAGS = `${GTK_CONFIG} --libs`
9
+
10
+all: gbase
11
 
12
 gbase:	gbase.o
13
 	$(CC) gbase.o $(LDFLAGS) -o gbase
14
@@ -10,6 +11,6 @@
15
 
16
 # Make object files:
17
 %.o:
18
-	$(CC) $(CCFLAGS) -c $*.c
19
+	$(CC) $(CFLAGS) -c $*.c
20
 
21
-gbase.o: gbase.c
22
+gbase.o: gbase.c
(-)converters/gbase/pkg-descr (-1 / +1 lines)
Lines 5-8 Link Here
5
both signed and unsigned 32-bit integers.
5
both signed and unsigned 32-bit integers.
6
6
7
License: Artistic
7
License: Artistic
8
WWW: http://www.hibernaculum.net/gbase/
8
WWW: http://www.fluxcode.net/

Return to bug 141813