freebsd-ports/graphics/libpano13/files/patch-Makefile.am
Greg Lehey db32dd417a Take MAINTAINER
Approved by: vd@

Update to 2.19.9

Approved by:	edwin@ (mentor)
MFC after:	2 weeks
2015-11-19 01:50:58 +00:00

38 lines
1.4 KiB
Text

--- Makefile.am.orig 2014-02-18 09:04:42.000000000 +1100
+++ Makefile.am 2015-10-20 17:28:01.000000000 +1100
@@ -94,13 +94,23 @@
endif
-AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(ENDIAN_FLAG)
+if HAVE_FREEBSD
+LIN_SRC = sys_ansi.c sys_compat_unix.c ppm.c
+LIN_DEFS = -D__Ansi__=1
+LIN_LDFS = -version-info 3:0:0
+
+install-exec-hook:
+ @true
+
+endif
+
+AM_CPPFLAGS = $(JAVA_FLAGS) $(JPEG_FLAGS) $(PNG_FLAGS) $(TIFF_FLAGS) $(ZLIB_FLAGS) $(WIN_DEFS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(ENDIAN_FLAG) $(FBSD_DEFS)
lib_LTLIBRARIES = libpano13.la
-libpano13_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC)
+libpano13_la_SOURCES = $(STD_SRC) $(JAVA_SRC) $(X11_SRC) $(WIN_SRC) $(MAC_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC) $(FBSD_SRC)
libpano13_la_LIBADD = $(LIB_JPEG) $(LIB_PNG) $(LIB_TIFF) $(LIB_ZLIB) @PANO_WIN32_RESOURCE@
-libpano13_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS) $(SOL_LDFS)
+libpano13_la_LDFLAGS = $(LIN_LDFS) $(WIN_LDFS) $(DAR_LDFS) $(SOL_LDFS) $(FBSD_LDFS)
libpano13_la_DEPENDENCIES = @PANO_WIN32_RESOURCE@
pkginclude_HEADERS = $(STD_HDR) $(TOOL_HDR)
@@ -108,7 +118,7 @@
noinst_HEADERS = $(INTERNAL_HDR) $(SYS_HDR) $(MAC_HDR)
# Pkg-config script.
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(exec_prefix)/libdata/pkgconfig
pkgconfig_DATA = libpano13.pc
DISTCLEANFILES = $(pkgconfig_DATA)