summaryrefslogtreecommitdiff
path: root/package/libnetfilter_log/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnetfilter_log/Makefile')
-rw-r--r--package/libnetfilter_log/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/package/libnetfilter_log/Makefile b/package/libnetfilter_log/Makefile
index 8fb6c91..64047b3 100644
--- a/package/libnetfilter_log/Makefile
+++ b/package/libnetfilter_log/Makefile
@@ -16,13 +16,26 @@ PKG_SITES:= http://www.netfilter.org/projects/libnetfilter_log/files/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+PKG_SUBPKGS:= LIBNETFILTER_LOG LIBNETFILTER_LOG_DEV
+PKGSC_LIBNETFILTER_LOG_DEV:= devel
+PKGSD_LIBNETFILTER_LOG_DEV:= libnetfilter-log headers
+
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBNETFILTER_LOG,libnetfilter-log,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBNETFILTER_LOG_DEV,libnetfilter-log-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNETFILTER_LOG_DEV},${PKGSC_LIBNETFILTER_LOG_DEV}))
-post-install:
+libnetfilter-log-install:
$(INSTALL_DIR) $(IDIR_LIBNETFILTER_LOG)/usr/lib
$(CP) $(WRKINST)/usr/lib/libnetfilter_log*so* \
- $(IDIR_LIBNETFILTER_LOG)/usr/lib/
+ $(IDIR_LIBNETFILTER_LOG)/usr/lib
+
+libnetfilter-log-dev-install:
+ $(INSTALL_DIR) $(IDIR_LIBNETFILTER_LOG_DEV)/usr/include
+ $(CP) $(WRKINST)/usr/include/* \
+ $(IDIR_LIBNETFILTER_LOG_DEV)/usr/include
+ $(INSTALL_DIR) $(IDIR_LIBNETFILTER_LOG_DEV)/usr/lib/pkgconfig
+ $(CP) $(WRKINST)/usr/lib/pkgconfig/*.pc \
+ $(IDIR_LIBNETFILTER_LOG_DEV)/usr/lib/pkgconfig
include ${TOPDIR}/mk/pkg-bottom.mk