bdfresize: use the SUBST framework instead of calling sed directly.
Pointed out by leot@, thanks!
This commit is contained in:
parent
d29d77a216
commit
96066d144a
|
@ -8,11 +8,20 @@ MAINTAINER= fred@statdns.com
|
|||
COMMENT= Tool for resizing BDF format fonts
|
||||
LICENSE= gnu-gpl-v2
|
||||
|
||||
# Do not build embedded getopt
|
||||
SUBST_CLASSES+= makefile
|
||||
SUBST_STAGE.makefile= post-configure
|
||||
SUBST_MESSAGE.makefile= Do not build embedded getopt
|
||||
SUBST_FILES.makefile= Makefile
|
||||
SUBST_SED.makefile+= -e 's,charresize.o getopt.o,charresize.o,'
|
||||
|
||||
# Fix getopt includes
|
||||
SUBST_CLASSES+= includes
|
||||
SUBST_STAGE.includes= post-configure
|
||||
SUBST_MESSAGE.includes= Fix getopt includes
|
||||
SUBST_FILES.includes= bdfresize.c
|
||||
SUBST_SED.includes+= -e 's,"getopt.h",<getopt.h>,'
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
post-configure:
|
||||
# Do not build embedded getopt
|
||||
sed -i 's|"getopt.h"|<getopt.h>|' ${WRKSRC}/bdfresize.c
|
||||
sed -i 's|charresize.o getopt.o|charresize.o|' ${WRKSRC}/Makefile
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
Loading…
Reference in New Issue