Multipackaged test for portbump -l.

This commit is contained in:
zhuk 2015-05-01 11:03:11 +00:00
parent af17dc3d43
commit 46ae3fe628
6 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# no RCS Id here, please
COMMENT-main = portbump test package 7
COMMENT-qt4 = portbump test package 7, qt4 subpackage
PKGNAME-main = portbump-t7-1.0
PKGNAME-qt4 = portbump-t7-qt4-1.0
WANTLIB-main = ${WANTLIB} m pthread
WANTLIB-qt4 =
MULTI_PACKAGES = -main -qt4
DISTFILES =
MODULES = x11/qt4
MAKE_ENV = LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
do-extract:
cp ${FILESDIR}/* ${WRKSRC}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/t7 ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/t7-qt4 ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
LDFLAGS_t7 = ${LDFLAGS} -lpthread
LDFLAGS_t7-qt4 = ${LDFLAGS_t7} -lQtCore
all: t7 t7-qt4
t7: t7.o
t7-qt4: t7.o t7-qt4.o
t7 t7-qt4:
${CC} -o $@ $> ${LDFLAGS_$@}

View File

@ -0,0 +1,3 @@
int foo(void) {
return 42;
}

View File

@ -0,0 +1,11 @@
#include <sys/types.h>
#include <pthread.h>
#include <stdio.h>
int
main(int argc, char **argv) {
pthread_attr_t attr;
(void)pthread_attr_init(&attr);
return 0;
}

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2015/05/01 11:03:11 zhuk Exp $
@bin bin/t7

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-qt4,v 1.1.1.1 2015/05/01 11:03:11 zhuk Exp $
@bin bin/t7-qt4