Lines 6-16
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gnokii |
8 |
PORTNAME= gnokii |
9 |
PORTVERSION= 0.5.0 |
9 |
PORTVERSION= 0.5.2 |
10 |
PORTEPOCH= 1 |
10 |
PORTEPOCH= 1 |
11 |
CATEGORIES= comms |
11 |
CATEGORIES= comms |
12 |
MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/ \ |
12 |
MASTER_SITES= http://savannah.nongnu.org/download/gnokii/ \ |
13 |
http://freesoftware.fsf.org/download/gnokii/ \ |
|
|
14 |
ftp://ftp.gnokii.org/pub/gnokii/ |
13 |
ftp://ftp.gnokii.org/pub/gnokii/ |
15 |
|
14 |
|
16 |
MAINTAINER= anders@FreeBSD.org |
15 |
MAINTAINER= anders@FreeBSD.org |
Lines 18-25
Link Here
|
18 |
|
17 |
|
19 |
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext |
18 |
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext |
20 |
|
19 |
|
|
|
20 |
# If smsd is enabled check if MySQL or PostgreSQL are installed and |
21 |
# build the modules, no switches to make this port build those, if |
22 |
# you want them, just install them before this port. The port will |
23 |
# then activate a dependency. |
24 |
.if !defined(WITH_SMSD) |
25 |
@${ECHO} |
26 |
@${ECHO} "If you plan using the smsd daemon for automatically receiving," |
27 |
@${ECHO} "managing and sending SMSes define WITH_SMSD=yes." |
28 |
@${ECHO} "smsd has support for normal file system operations, MySQL and" |
29 |
@${ECHO} "PostgreSQL. If any of these 2 database systems are installed support" |
30 |
@${ECHO} "will be automatically compiled in. Normal file systems support is" |
31 |
@${ECHO} "always compiled in." |
32 |
@${ECHO} |
33 |
PLIST_SUB+= SMSD='@comment ' |
34 |
PLIST_SUB+= PGM='@comment ' |
35 |
PLIST_SUB+= MSM='@comment ' |
36 |
.else |
37 |
PLIST_SUB+= SMSD='' |
38 |
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) |
39 |
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client |
40 |
PLIST_SUB+= MSM='' |
41 |
WITH_MYSQL= yes |
42 |
.else |
43 |
PLIST_SUB+= MSM='@comment ' |
44 |
.endif |
45 |
.if exists(${LOCALBASE}/lib/libpq.so) |
46 |
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} |
47 |
PLIST_SUB+= PGM='' |
48 |
WITH_PGSQL= yes |
49 |
.else |
50 |
PLIST_SUB+= PGM='@comment ' |
51 |
.endif |
52 |
.endif |
53 |
|
21 |
USE_REINPLACE= yes |
54 |
USE_REINPLACE= yes |
22 |
USE_GMAKE= yes |
55 |
USE_GMAKE= yes |
|
|
56 |
USE_BZIP2= yes |
23 |
.if !defined(WITHOUT_X11) |
57 |
.if !defined(WITHOUT_X11) |
24 |
USE_XPM= yes |
58 |
USE_XPM= yes |
25 |
USE_GNOME= gtk12 |
59 |
USE_GNOME= gtk12 |
Lines 36-41
Link Here
|
36 |
.else |
70 |
.else |
37 |
PLIST_SUB+= X11='' |
71 |
PLIST_SUB+= X11='' |
38 |
.endif |
72 |
.endif |
|
|
73 |
|
39 |
CONFIGURE_ENV+= MSGFMT="${LOCALBASE}/bin/msgfmt" \ |
74 |
CONFIGURE_ENV+= MSGFMT="${LOCALBASE}/bin/msgfmt" \ |
40 |
XGETTEXT="${LOCALBASE}/bin/xgettext" \ |
75 |
XGETTEXT="${LOCALBASE}/bin/xgettext" \ |
41 |
CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ |
76 |
CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ |
Lines 65-70
Link Here
|
65 |
${WRKSRC}/${f} |
100 |
${WRKSRC}/${f} |
66 |
.endfor |
101 |
.endfor |
67 |
|
102 |
|
|
|
103 |
post-build: |
104 |
.if defined(WITH_SMSD) |
105 |
@cd ${WRKSRC}/smsd && ${GMAKE} all |
106 |
@cd ${WRKSRC}/smsd && ${GMAKE} libfile.so |
107 |
.if defined(WITH_MYSQL) |
108 |
@cd ${WRKSRC}/smsd && ${GMAKE} libmysql.so |
109 |
.endif |
110 |
.if defined(WITH_PGSQL) |
111 |
@cd ${WRKSRC}/smsd && ${GMAKE} libpq.so |
112 |
.endif |
113 |
.endif |
114 |
|
68 |
pre-install: |
115 |
pre-install: |
69 |
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
116 |
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
70 |
|
117 |
|
Lines 73-78
Link Here
|
73 |
@(cd ${WRKSRC} && ${GMAKE} install-docs) |
120 |
@(cd ${WRKSRC} && ${GMAKE} install-docs) |
74 |
${INSTALL_DATA} ${WRKSRC}/Docs/sample/gnokiirc \ |
121 |
${INSTALL_DATA} ${WRKSRC}/Docs/sample/gnokiirc \ |
75 |
${PREFIX}/etc/gnokiirc.sample |
122 |
${PREFIX}/etc/gnokiirc.sample |
|
|
123 |
.if defined(WITH_SMSD) |
124 |
${MKDIR} ${PREFIX}/share/smsd |
125 |
${INSTALL_PROGRAM} ${WRKSRC}/smsd/smsd ${PREFIX}/sbin/smsd |
126 |
${INSTALL_SCRIPT} ${WRKSRC}/smsd/action ${PREFIX}/share/smsd/action |
127 |
${INSTALL_DATA} ${WRKSRC}/smsd/README ${PREFIX}/share/smsd/README |
128 |
${INSTALL_PROGRAM} ${WRKSRC}/smsd/libfile.so ${PREFIX}/share/smsd/libfile.so |
129 |
.if defined(WITH_MYSQL) |
130 |
${INSTALL_PROGRAM} ${WRKSRC}/smsd/libmysql.so ${PREFIX}/share/smsd/libmysql.so |
131 |
${INSTALL_DATA} ${WRKSRC}/smsd/sms.tables.mysql.sql ${PREFIX}/share/smsd/sms.tables.mysql.sql |
132 |
.endif |
133 |
.if defined(WITH_PGSQL) |
134 |
${INSTALL_PROGRAM} ${WRKSRC}/smsd/libpq.so ${PREFIX}/share/smsd/libpq.so |
135 |
${INSTALL_DATA} ${WRKSRC}/smsd/sms.tables.pq.sql ${PREFIX}/share/smsd/sms.tables.pq.sql |
136 |
.endif |
137 |
.endif |
76 |
@${CAT} ${PKGMESSAGE} |
138 |
@${CAT} ${PKGMESSAGE} |
77 |
|
139 |
|
78 |
.include <bsd.port.mk> |
140 |
.include <bsd.port.mk> |