summaryrefslogtreecommitdiffstats
path: root/kernel/kls_camera/Makefile.am
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 17:43:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 17:43:19 +0000
commit0292059f4a16434600564cfa3f0ad2309a508a54 (patch)
treed95953cd53011917c4df679b96aedca39401b54f /kernel/kls_camera/Makefile.am
downloadlibksquirrel-0292059f4a16434600564cfa3f0ad2309a508a54.tar.gz
libksquirrel-0292059f4a16434600564cfa3f0ad2309a508a54.zip
Added libksquirrel for KDE3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/libksquirrel@1095624 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kernel/kls_camera/Makefile.am')
-rw-r--r--kernel/kls_camera/Makefile.am39
1 files changed, 39 insertions, 0 deletions
diff --git a/kernel/kls_camera/Makefile.am b/kernel/kls_camera/Makefile.am
new file mode 100644
index 0000000..275b9c4
--- /dev/null
+++ b/kernel/kls_camera/Makefile.am
@@ -0,0 +1,39 @@
+INCLUDES = -I../include
+
+# shut up gcc
+CFLAGS = -O4
+
+bin_PROGRAMS = ksquirrel-libs-dcraw
+bin_SCRIPTS = ksquirrel-libs-camera2ppm
+
+ksquirrel_libs_dcraw_SOURCES = dcraw.c
+
+if CAMERA_NO_JPEG
+camera_jpeg = -DNO_JPEG
+else
+nojpeg_opt = -ljpeg
+endif
+
+if CAMERA_NO_CMS
+camera_cms = -DNO_LCMS
+else
+nocms_opt = ${lcms_LIBS}
+endif
+
+ksquirrel_libs_dcraw_LDADD = ${nojpeg_opt} ${nocms_opt} -lm
+ksquirrel_libs_dcraw_CFLAGS = ${camera_jpeg} ${camera_cms} ${lcms_CFLAGS}
+
+pkglib_LTLIBRARIES = libkls_camera.la
+
+libkls_camera_la_SOURCES = fmt_codec_pnm.cpp fmt_codec_pnm_defs.h
+
+libkls_camera_la_LDFLAGS = ${SQ_RELEASE}
+libkls_camera_la_LIBADD = ${SQ_LOCAL_RPATH}
+
+AM_CXXFLAGS = ${camera_cms} -DCAMERA_UI=\"${pkgdatadir}/libkls_camera.so.ui\" -DCODEC_CAMERA -DCODEC_ANOTHER -DKLDCRAW_S=\"${bindir}/ksquirrel-libs-camera2ppm\" -DKLDCRAW=\"${bindir}/ksquirrel-libs-dcraw\"
+
+EXTRA_DIST = libkls_camera.so.ui ksquirrel-libs-camera2ppm.in
+
+install-data-am:
+ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
+ $(INSTALL) --mode=0644 libkls_camera.so.ui $(DESTDIR)$(pkgdatadir)/libkls_camera.so.ui