openbsd-ports/graphics/libpano13/patches/patch-tools_Makefile_am

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-09-16 03:52:54 -04:00
$OpenBSD: patch-tools_Makefile_am,v 1.2 2010/09/16 07:52:54 sthen Exp $
--- tools/Makefile.am.orig Sat Jul 24 22:16:56 2010
+++ tools/Makefile.am Sat Sep 4 21:32:14 2010
@@ -24,6 +24,14 @@ LIN_SRC =
LIN_DEFS =
endif
+if HAVE_OPENBSD
+OBSD_SRC = panoinfo_unix.c
+OBSD_DEFS = -D__Ansi__=1
+else
+OBSD_SRC =
+OBSD_DEFS =
+endif
+
if HAVE_DARWIN
DAR_SRC = panoinfo_unix.c
DAR_DEFS = -D__Ansi__=1
2010-09-16 03:52:54 -04:00
@@ -40,7 +48,7 @@ SOL_SRC =
SOL_DEFS =
endif
2010-09-16 03:52:54 -04:00
-AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS)
+AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(SOL_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS) $(OBSD_DEFS)
AM_LDFLAGS = -L${top_builddir}
# PTAInterpolate can only be compiled with ptpicker.h, which in turn depends on java
2010-09-16 03:52:54 -04:00
@@ -85,7 +93,7 @@ PTtiffdump_LDADD = -l${PANOLIB} -ljpeg -ltiff
PToptimizer_SOURCES = PToptimizer.c
PToptimizer_LDADD = -l${PANOLIB}
2010-09-16 03:52:54 -04:00
-panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC)
+panoinfo_SOURCES = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC) $(SOL_SRC) $(OBSD_SRC)
panoinfo_LDADD = -l${PANOLIB}
2010-09-16 03:52:54 -04:00
EXTRA_DIST = README.PTmender \