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> |