mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Multipackaged test for portbump -l.
This commit is contained in:
@@ -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>
|
||||
@@ -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_$@}
|
||||
@@ -0,0 +1,3 @@
|
||||
int foo(void) {
|
||||
return 42;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2015/05/01 11:03:11 zhuk Exp $
|
||||
@bin bin/t7
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user