Date: Sun, 16 Jun 2013 23:38:55 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r253050 - soc2013/mattbw Message-ID: <201306162338.r5GNctKe084997@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mattbw Date: Sun Jun 16 23:38:54 2013 New Revision: 253050 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=253050 Log: (very trivial) initial pokings of pkgng and packagekit, mostly for my benefit to make sure both are installed properly Added: soc2013/mattbw/Makefile soc2013/mattbw/test.c Added: soc2013/mattbw/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/Makefile Sun Jun 16 23:38:54 2013 (r253050) @@ -0,0 +1,12 @@ +# To be BSD-ified later. + +PKGS= pkg packagekit-plugin +CC= clang +CFLAGS= `pkg-config --cflags $(PKGS)` +LIBS= `pkg-config --libs $(PKGS)` + +test: test.o + $(CC) $(LIBS) -o test test.o + +test.o: test.c + $(CC) $(CFLAGS) -c -o test.o test.c Added: soc2013/mattbw/test.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/test.c Sun Jun 16 23:38:54 2013 (r253050) @@ -0,0 +1,15 @@ +/* Test to make sure that pkgng and packagekit are both being linked to. */ + +#define I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE + +#include <stdio.h> +#include "pkg.h" +#include "packagekit-glib2/packagekit.h" + +int +main(int argv, char **argc) +{ + printf("pkgng version: %s\n", PKGVERSION); + printf("packagekit version: %i.%i.%i\n", PK_MAJOR_VERSION, PK_MINOR_VERSION, PK_MICRO_VERSION); + return 0; +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306162338.r5GNctKe084997>