diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-11-18 00:51:34 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2017-11-18 00:51:34 +0000 |
commit | 1f2a4fab1330c0d3c4cf3bf5188caea03b1cefbe (patch) | |
tree | 71adde622c1454a31223a790512fd8775bb22bcf /graphics/netpbm/Makefile | |
parent | Update to 0.13.11 (diff) |
graphics/netpbm: Fix build with older netpbm versions installed
The build currently fails when older netpbm version are still
installed in the build environment e.g. when upgrading from 10.35.98
to 10.80.00 the build fails with
ppmtompeg.o: In function `main':
ppmtompeg.c:(.text+0x9a5): undefined reference to `pm_strfree'
ppmtompeg.o: In function `getUserFrameFile':
ppmtompeg.c:(.text+0xcb1): undefined reference to `pm_asprintf'
ppmtompeg.c:(.text+0xcfb): undefined reference to `pm_strfree'
ppmtompeg.c:(.text+0xd04): undefined reference to `pm_strfree'
- Use explicit paths when linking with libnetpbm
- Remove UPDATING entry that previously recommended deinstalling
netpbm first when using portmaster/portupgrade
PR: 223724
Notes
Notes:
svn path=/head/; revision=454404
Diffstat (limited to 'graphics/netpbm/Makefile')
-rw-r--r-- | graphics/netpbm/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index 0dd7d1382cae..c6550a28910e 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -87,7 +87,9 @@ post-patch: .endfor post-patch-STATIC-on: - @${REINPLACE_CMD} 's|$$(LD)|$$(LD) -static|g' ${WRKSRC}/common.mk + @${REINPLACE_CMD} -e 's|$$(LD)|$$(LD) -static|g' \ + -e 's@$$(NETPBMLIBFNAME)@libnetpbm.a@' \ + ${WRKSRC}/common.mk # Disable building svgtopam by default. It is the only program that # requires libxml2 and it is not useful in this day and age according |