add a pkg-config file for libdice
This commit is contained in:
		
							parent
							
								
									ea98d356a0
								
							
						
					
					
						commit
						f26d57419c
					
				| @ -14,4 +14,6 @@ AM_CFLAGS =		-Ilib | |||||||
| 
 | 
 | ||||||
| libdice_la_LIBADD =	${BSD_LIBS} | libdice_la_LIBADD =	${BSD_LIBS} | ||||||
| 
 | 
 | ||||||
|  | pkgconfig_DATA =	libdice.pc | ||||||
|  | 
 | ||||||
| SUBDIRS	=		. tests | SUBDIRS	=		. tests | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.0.1]) | |||||||
| 
 | 
 | ||||||
| AC_CHECK_HEADER_STDBOOL() | AC_CHECK_HEADER_STDBOOL() | ||||||
| 
 | 
 | ||||||
| AC_CHECK_FUNCS([arc4random arc4random_uniform strlcat strlcpy],, | AC_CHECK_FUNCS([arc4random_uniform],, | ||||||
|    [PKG_CHECK_MODULES([BSD], [libbsd])]) |    [PKG_CHECK_MODULES([BSD], [libbsd])]) | ||||||
| 
 | 
 | ||||||
| AC_CONFIG_FILES([Makefile tests/Makefile]) | AC_CONFIG_FILES([Makefile tests/Makefile]) | ||||||
| @ -22,4 +22,7 @@ AC_SEARCH_LIBS([cos], [m], [], [ | |||||||
|   AC_MSG_ERROR([unable to find the cos() function]) |   AC_MSG_ERROR([unable to find the cos() function]) | ||||||
| ]) | ]) | ||||||
| 
 | 
 | ||||||
|  | PKG_INSTALLDIR | ||||||
|  | AC_CONFIG_FILES([libdice.pc]) | ||||||
|  | 
 | ||||||
| AC_OUTPUT | AC_OUTPUT | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								libdice.pc.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								libdice.pc.in
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | prefix=@prefix@ | ||||||
|  | exec_prefix=@exec_prefix@ | ||||||
|  | libdir=@libdir@ | ||||||
|  | includedir=@includedir@ | ||||||
|  | 
 | ||||||
|  | Name: libdice | ||||||
|  | Description: dice rolling and math expression library | ||||||
|  | Version: 0.1 | ||||||
|  | Requires: | ||||||
|  | Conflicts: | ||||||
|  | Cflags: -I${includedir} | ||||||
|  | Libs: -L${libdir} -ldice | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user