src_install() {
#	emake DESTDIR="${D}" PREFIX=/usr install

	# Install libXNVCtrl and headers
	insinto /usr/$(get_libdir)
	doins src/libXNVCtrl/libXNVCtrl.a

	insinto /usr/include/NVCtrl
	doins src/libXNVCtrl/*.h

	# Install icon and .desktop entry
#	doicon doc/${PN}.png
#	make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Application

	# Now install documentation
	dodoc doc/*.txt

	if use examples; then
		docinto examples/
		dodoc samples/*.c
		dodoc samples/README
	fi
}
