openbsd-ports/comms/smstools/Makefile
ajacoutot 561d6fe9bc Sanitize some @unexec/@extraunexec calls to rm: move them up in the
PLIST and remove remove everything under the @sample'd directory instead
of the directory itself to prevent a warning from pkg_delete(1) trying
to remove a non existing directory and to help preventing left-over
files and directories.
2011-05-11 06:22:16 +00:00

60 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2011/05/11 06:22:16 ajacoutot Exp $
COMMENT = gateway to send and receive SMS through GSM mobile phones
DISTNAME = smstools3-3.1.14
REVISION = 3
CATEGORIES = comms
HOMEPAGE = http://smstools3.kekekasvi.com/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c mm
MASTER_SITES = ${HOMEPAGE}/packages/
# some scripts use formail
RUN_DEPENDS = mail/procmail
LIB_DEPENDS = devel/mm
USE_GMAKE = Yes
NO_REGRESS = Yes
WRKDIST = ${WRKDIR}/smstools3
WRKSRC = ${WRKDIST}/src
EXTRA_CFLAGS += -I${LOCALBASE}/include -L${LOCALBASE}/lib
MAKE_FLAGS += CFLAGS="${CFLAGS} -D NUMBER_OF_MODEMS=64 `mm-config --cflags`"
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 \
${PREFIX}/share/examples/smstools/scripts
${INSTALL_DATA} ${WRKDIST}/examples/* \
${PREFIX}/share/examples/smstools
${INSTALL_DATA} ${WRKDIST}/scripts/* \
${PREFIX}/share/examples/smstools/scripts
rm ${PREFIX}/share/examples/smstools/scripts/*.orig
${SUBST_CMD} -c ${FILESDIR}/smsd.conf.openbsd \
${WRKDIR}/smsd.conf.openbsd
${INSTALL_DATA} ${WRKDIR}/smsd.conf.openbsd \
${PREFIX}/share/examples/smstools/smsd.conf.openbsd
${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>