pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libevent



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Nov 30 13:21:47 UTC 2016

Modified Files:
        pkgsrc/devel/libevent: builtin.mk

Log Message:
Create pkg-config files for the two other libraries as well.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/libevent/builtin.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libevent/builtin.mk
diff -u pkgsrc/devel/libevent/builtin.mk:1.17 pkgsrc/devel/libevent/builtin.mk:1.18
--- pkgsrc/devel/libevent/builtin.mk:1.17       Thu Feb  5 07:09:31 2015
+++ pkgsrc/devel/libevent/builtin.mk    Wed Nov 30 13:21:47 2016
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.17 2015/02/05 07:09:31 pettai Exp $
+# $NetBSD: builtin.mk,v 1.18 2016/11/30 13:21:47 wiz Exp $
 
 BUILTIN_PKG:=  libevent
 
@@ -143,10 +143,12 @@ do-configure-pre-hook: override-libevent
 
 BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig
 LIBEVENT_PKGCFGF=      libevent.pc
+LIBEVENT_OPENSSL_PKGCFGF=      libevent_openssl.pc
+LIBEVENT_PTHREADS_PKGCFGF=     libevent_pthreads.pc
 
 override-libevent-pkgconfig: override-message-libevent-pkgconfig
 override-message-libevent-pkgconfig:
-       @${STEP_MSG} "Generating pkg-config file for builtin libevent package."
+       @${STEP_MSG} "Generating pkg-config files for builtin libevent package."
 
 override-libevent-pkgconfig:
        ${RUN}                                          \
@@ -163,6 +165,33 @@ override-libevent-pkgconfig:
        ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent";        \
        ${ECHO} "Cflags: -I\$${includedir}";            \
        } >> ${BLKDIR_PKGCFG}/${LIBEVENT_PKGCFGF};
+       ${RUN}                                          \
+       {                                               \
+       ${ECHO} "prefix=${LIBEVENT_PREFIX}";            \
+       ${ECHO} "exec_prefix=\$${prefix}";              \
+       ${ECHO} "libdir=\$${exec_prefix}/lib";          \
+       ${ECHO} "includedir=\$${prefix}/include";       \
+       ${ECHO} "";                                     \
+       ${ECHO} "Name: libevent_openssl";                       \
+       ${ECHO} "Description: libevent_openssl adds openssl-based TLS support to libevent"; \
+       ${ECHO} "Version: ${BUILTIN_VERSION.libevent}"; \
+       ${ECHO} "Requires: libevent";   \
+       ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent_openssl";        \
+       ${ECHO} "Cflags: -I\$${includedir}";            \
+       } >> ${BLKDIR_PKGCFG}/${LIBEVENT_OPENSSL_PKGCFGF};
+       ${RUN}                                          \
+       {                                               \
+       ${ECHO} "prefix=${LIBEVENT_PREFIX}";            \
+       ${ECHO} "exec_prefix=\$${prefix}";              \
+       ${ECHO} "libdir=\$${exec_prefix}/lib";          \
+       ${ECHO} "includedir=\$${prefix}/include";       \
+       ${ECHO} "";                                     \
+       ${ECHO} "Name: libevent_pthreads";                      \
+       ${ECHO} "Description: libevent_pthreads adds pthreads-based threading support to libevent"; \
+       ${ECHO} "Version: ${BUILTIN_VERSION.libevent}"; \
+       ${ECHO} "Requires: libevent";   \
+       ${ECHO} "Libs: ${COMPILER_RPATH_FLAG}\$${libdir} -L\$${libdir} -levent_pthreads";       \
+       ${ECHO} "Cflags: -I\$${includedir} -pthread";           \
+       } >> ${BLKDIR_PKGCFG}/${LIBEVENT_PTHREADS_PKGCFGF};
 .  endif
 .endif
-



Home | Main Index | Thread Index | Old Index