blob: 26a43ad7fa04cdc88f55c0e11f2fba95f5ff8bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $NetBSD: Makefile,v 1.20 2012/03/15 11:53:29 obache Exp $
DISTNAME= cwtext-0.96
PKGREVISION= 1
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cwtext/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cwtext.sourceforge.net/
COMMENT= Morse Code Generator
PKG_DESTDIR_SUPPORT= user-destdir
MAKE_FILE= makefile
USE_TOOLS+= gmake
BUILD_TARGET= ALL
INSTALLATION_DIRS= bin
INSTALLATION_DIRS+= share/doc/${PKGBASE}
post-patch:
${SED} -e "s,^PREFIX,#PREFIX,g" \
-e "s,gcc,${CC} ${CFLAGS},g" \
-e "s,python,${PYTHONBIN},g" \
${WRKSRC}/${MAKE_FILE} > ${WRKSRC}/${MAKE_FILE}.done
${MV} ${WRKSRC}/${MAKE_FILE}.done ${WRKSRC}/${MAKE_FILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cwpcm ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cwtext ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cwmm ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|