[Cbe-oss-dev] [PATCH] libspe2: add pkg-config file to libspe2

D. Herrendoerfer d.herrendoerfer at herrendoerfer.name
Mon May 21 12:28:28 EST 2007


Added to SVN,

thank you very much.

D.Herrendoerfer

On Wed, 2007-05-16 at 20:00 +0200, Luca Barbato wrote:
> D. Herrendoerfer wrote:
> 
> > Yes, but it is missing the Signed-off-by:
> > Sorry for being pedantic, but I really need it to be in there.
> 
> libspe2.pc creation
> 
> Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> plain text document attachment (libspe2-pkgconfig.patch)
> Index: libspe2/libspe2.pc.in
> ===================================================================
> --- libspe2/libspe2.pc.in	(revision 0)
> +++ libspe2/libspe2.pc.in	(revision 0)
> @@ -0,0 +1,12 @@
> +prefix=@prefix@
> +exec_prefix=@exec_prefix@
> +libdir=@libdir@
> +includedir=@includedir@
> +
> +Name: @name@
> +Description: A wrapper library to adapt the JSRE SPU usage model to SPUFS 
> +Version: @version@
> +Requires: 
> +Conflicts: 
> +Libs: -L${libdir} -lspe2 -lrt -lpthread
> +Cflags: -I${includedir}
> Index: libspe2/Makefile
> ===================================================================
> --- libspe2/Makefile	(revision 39)
> +++ libspe2/Makefile	(working copy)
> @@ -34,6 +34,14 @@ PACKAGE_VER	:= $(FULLNAME)-$(RELEASE)
>  TARBALL		:= $(SOURCES)$(PACKAGE_VER).tar.gz
>  SOURCEFILES	:= $(TARBALL)
>  
> +edit = @sed \
> +	-e 's, at prefix@,$(prefix),g' \
> +	-e 's, at exec_prefix@,$(exec_prefix),g' \
> +	-e 's, at libdir@,$(libdir),g' \
> +	-e 's, at name@,$(PACKAGE),g' \
> +	-e 's, at includedir@,$(includedir),g' \
> +	-e 's, at version@,$(VERSION),g'
> +
>  all:  $(libspe2_SO) $(libspe2_A) libspe12-all
>  
>  dist:  $(TARBALL)
> @@ -59,9 +67,11 @@ libspe12-all:
>  
>  install: libspe12-install
>  	$(INSTALL_DIR)     $(ROOT)$(libdir)
> +	$(INSTALL_DIR) 	   $(ROOT)$(libdir)/pkgconfig
>  	$(INSTALL_DATA)	   $(libspe2_A)			$(ROOT)$(libdir)/$(libspe2_A)
>  	$(INSTALL_PROGRAM) $(libspe2_SO)		$(ROOT)$(libdir)/$(libspe2_SO)
>  	$(INSTALL_LINK)	   $(libspe2_SO)		$(ROOT)$(libdir)/$(libspe2_SONAME)
> +	$(INSTALL_DATA)    libspe2.pc           $(ROOT)$(libdir)/pkgconfig
>  	$(INSTALL_LINK)	   $(libspe2_SONAME)	$(ROOT)$(libdir)/libspe2.so
>  	$(INSTALL_DIR)     $(ROOT)$(includedir)
>  	$(INSTALL_DATA)    libspe2.h            $(ROOT)$(includedir)/libspe2.h
> @@ -83,7 +93,12 @@ tests: tests/Makefile
>  tags:
>  	$(CTAGS) -R .
>  
> -$(libspe2_SO): $(libspe2_OBJS) base-all  event-all 
> +libspe2.pc: Makefile $(TOP)/libspe2.pc.in
> +	@rm -f $@ $@.tmp
> +	$(edit) $(TOP)/$@.in >$@.tmp
> +	@mv $@.tmp $@
> +
> +$(libspe2_SO): $(libspe2_OBJS) base-all  event-all libspe2.pc 
>  	$(CC) $(CFLAGS) -shared -o $@ $(libspe2_OBJS) spebase/*.o speevent/*.o -lrt -lpthread -Wl,--soname=${libspe2_SONAME}
>  
>  $(libspe2_A): $(libspe2_OBJS) base-all  event-all 
> @@ -183,6 +198,7 @@ clean: base-clean event-clean elfspe-cle
>  	rm -rf xml
>  	rm -rf html
>  	rm -rf latex
> +	rm -f libspe2.pc
>  	make -C tests clean
>  
>  base-clean: 
> _______________________________________________
> cbe-oss-dev mailing list
> cbe-oss-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/cbe-oss-dev




More information about the cbe-oss-dev mailing list