2010-04-22 17:07:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2010/04/22 21:07:58 sthen Exp $
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
COMMENT = gateway to send and receive SMS through GSM mobile phones
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-12-02 09:24:35 -05:00
|
|
|
DISTNAME = smstools3-3.1.6
|
2010-04-22 17:07:58 -04:00
|
|
|
PKGNAME = ${DISTNAME}p0
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
CATEGORIES = comms
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
HOMEPAGE = http://smstools3.kekekasvi.com/
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2008-10-30 09:45:19 -04:00
|
|
|
# GPLv2
|
2009-03-17 06:47:44 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
WANTLIB = c
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
MASTER_SITES = ${HOMEPAGE}/packages/
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2009-03-17 06:47:44 -04:00
|
|
|
# some scripts use formail
|
|
|
|
RUN_DEPENDS = ::mail/procmail
|
2009-06-02 11:57:48 -04:00
|
|
|
LIB_DEPENDS = mm::devel/mm
|
2009-03-17 06:47:44 -04:00
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/smstools3
|
|
|
|
WRKSRC = ${WRKDIST}/src
|
2007-07-18 07:03:34 -04:00
|
|
|
|
2008-01-30 09:34:01 -05:00
|
|
|
# gcc 3.3.5 internal compiler error
|
2010-02-09 07:23:59 -05:00
|
|
|
.if ${MACHINE_ARCH:Mmips64*}
|
2009-06-02 11:57:48 -04:00
|
|
|
CFLAGS += -O0
|
2008-01-30 09:34:01 -05:00
|
|
|
.endif
|
|
|
|
|
2009-06-02 11:57:48 -04:00
|
|
|
EXTRA_CFLAGS += -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
MAKE_FLAGS += CFLAGS="${CFLAGS} -D NUMBER_OF_MODEMS=64 `mm-config --cflags`"
|
2008-01-30 09:34:01 -05:00
|
|
|
|
2007-07-18 07:03:34 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/smsd ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/scripts/{sendsms,sms2html} \
|
|
|
|
${WRKDIST}/scripts/{sms2unicode,unicode2sms} \
|
|
|
|
${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/smstools
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/examples/smsd.conf.full \
|
|
|
|
${PREFIX}/share/examples/smstools
|
2010-04-22 17:07:58 -04:00
|
|
|
${SUBST_CMD} -c ${FILESDIR}/smsd.conf.openbsd \
|
|
|
|
${WRKDIR}/smsd.conf.openbsd
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/smsd.conf.openbsd \
|
|
|
|
${PREFIX}/share/examples/smstools/smsd.conf.openbsd
|
2007-07-18 07:03:34 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smstools/slideshow
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/*html ${PREFIX}/share/doc/smstools
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/slideshow/* \
|
|
|
|
${PREFIX}/share/doc/smstools/slideshow
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|