Multipackaged test for portbump -l.
This commit is contained in:
parent
af17dc3d43
commit
46ae3fe628
25
tests/portbump/t7/Makefile
Normal file
25
tests/portbump/t7/Makefile
Normal 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>
|
10
tests/portbump/t7/files/Makefile
Normal file
10
tests/portbump/t7/files/Makefile
Normal 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_$@}
|
3
tests/portbump/t7/files/t7-qt4.c
Normal file
3
tests/portbump/t7/files/t7-qt4.c
Normal file
|
@ -0,0 +1,3 @@
|
|||
int foo(void) {
|
||||
return 42;
|
||||
}
|
11
tests/portbump/t7/files/t7.c
Normal file
11
tests/portbump/t7/files/t7.c
Normal 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;
|
||||
}
|
2
tests/portbump/t7/pkg/PLIST-main
Normal file
2
tests/portbump/t7/pkg/PLIST-main
Normal 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
|
2
tests/portbump/t7/pkg/PLIST-qt4
Normal file
2
tests/portbump/t7/pkg/PLIST-qt4
Normal 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
|
Loading…
Reference in New Issue
Block a user