-ifneq ($(CONFIG_PACKAGE_nfacctd-sqlite)$(CONFIG_PACKAGE_pmacctd-sqlite),)
- $(eval $(call Compile/Template,sqlite, \
- --enable-sqlite3 \
- --with-sqlite3-includes="$(STAGING_DIR)/usr/include" \
- --with-sqlite3-libs="$(STAGING_DIR)/usr/lib" \
- ))
- $(eval $(call Install/Template,nfacctd-sqlite,nfacctd-sqlite,nfacctd))
- $(eval $(call Install/Template,pmacctd-sqlite,pmacctd-sqlite,pmacctd))
+$(eval $(Compile/pmacct/pgsql))
+
+ifneq ($(SDK)$(CONFIG_PACKAGE_nfacctd-sqlite)$(CONFIG_PACKAGE_pmacctd-sqlite),)
+ define Compile/pmacct/sqlite
+ $(call Compile/Template,-sqlite, \
+ --enable-sqlite3 \
+ --with-sqlite3-includes="$(STAGING_DIR)/usr/include" \
+ --with-sqlite3-libs="$(STAGING_DIR)/usr/lib" \
+ )
+ $(call Install/Template,nfacctd,-sqlite)
+ $(call Install/Template,pmacctd,-sqlite)
+ endef