1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Switch build system from cmake to GNU configure

There are 2 benefits:
- Reduced number of build dependencies (0 now)
- This fixes build on arm64,  as configure/Makefile are more updated than
  CMakeLists.txt (CMakeLists.txt doesn't know about the arm/arm_init.c
  and arm/filter_neon_intrinsics.c files)

PR:		201425
Tested by:	Andrew Turner (on arm64)
This commit is contained in:
Antoine Brodin 2015-07-29 06:07:57 +00:00
parent 8f280973e3
commit b4d96c1275
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393143
3 changed files with 6 additions and 22 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= png
PORTVERSION= 1.6.17
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}16/${PORTVERSION}
PATCH_SITES= SF/apng/lib${PORTNAME}/lib${PORTNAME}16/
@ -11,13 +12,13 @@ DISTNAME= lib${PORTNAME}-${PORTVERSION}
MAINTAINER= portmgr@FreeBSD.org
COMMENT= Library for manipulating PNG images
USES= cmake cpe tar:xz
USES= cpe libtool tar:xz
CPE_PRODUCT= libpng
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CMAKE_ARGS+= -DPNG_MAN_DIR:STRING=man
OPTIONS_DEFINE=APNG PNGTEST
OPTIONS_DEFAULT=APNG PNGTEST
APNG_DESC=Enable Animated PNG support
@ -29,11 +30,6 @@ PNGTEST_DESC=Enable Regression Test (recommended)
PATCHFILES= ${DISTNAME}-apng.patch.gz
.endif
post-patch:
${REINPLACE_CMD} \
-e 's|LIBDIR}/pkgconfig|LIBDIR}data/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
.if ${PORT_OPTIONS:MPNGTEST}
post-build:
(cd ${BUILD_WRKSRC}; if ! ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} test; then \

View File

@ -1,12 +0,0 @@
--- CMakeLists.txt.orig 2015-03-26 13:06:23 UTC
+++ CMakeLists.txt
@@ -50,9 +50,6 @@ option(PNGARG "Disable ANSI-C pro
# SET LIBNAME
set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR})
-# to distinguish between debug and release lib
-set(CMAKE_DEBUG_POSTFIX "d")
-
# Use the prebuilt pnglibconf.h file from the scripts folder
# TODO: fix this by building with awk; without this no cmake build can be
# configured directly (to do so indirectly use your local awk to build a

View File

@ -1,5 +1,7 @@
bin/libpng-config
bin/libpng16-config
bin/png-fix-itxt
bin/pngfix
include/libpng16/png.h
include/libpng16/pngconf.h
include/libpng16/pnglibconf.h
@ -8,8 +10,6 @@ include/pngconf.h
include/pnglibconf.h
lib/libpng.a
lib/libpng.so
lib/libpng/libpng16-%%CMAKE_BUILD_TYPE%%.cmake
lib/libpng/libpng16.cmake
lib/libpng16.a
lib/libpng16.so
lib/libpng16.so.16